|
|
@@ -5,6 +5,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.exception.file.OssException;
|
|
|
+import com.fs.common.service.ITencentCloudCosService;
|
|
|
import com.fs.system.oss.CloudStorageService;
|
|
|
import com.fs.system.oss.OSSFactory;
|
|
|
import com.fs.web.vo.WangUploadVO;
|
|
|
@@ -37,6 +38,8 @@ public class CommonController
|
|
|
|
|
|
@Autowired
|
|
|
private ServerConfig serverConfig;
|
|
|
+ @Autowired
|
|
|
+ private ITencentCloudCosService tencentCloudCosService;
|
|
|
|
|
|
/**
|
|
|
* 通用下载请求
|
|
|
@@ -169,4 +172,10 @@ public class CommonController
|
|
|
return R.ok().put("url",url);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/common/getTmpSecretKey")
|
|
|
+ public R getTmpSecretKey()
|
|
|
+ {
|
|
|
+ return tencentCloudCosService.getKeyAndCredentials();
|
|
|
+ }
|
|
|
+
|
|
|
}
|