| | |
| | | |
| | | import com.hx.resultTool.Result; |
| | | import com.hz.his.dto.file.FileDownDto; |
| | | import com.hz.his.dto.file.FileSignVo; |
| | | import feign.Response; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.http.MediaType; |
| | |
| | | @PostMapping(value = "/cos/download-file") |
| | | Response downloadFile(@RequestBody FileDownDto cosDownDto); |
| | | |
| | | /** |
| | | *生成签名访问URL |
| | | * @param fileSignVo 对象 |
| | | * @return 使用FileSignReturnVo转化 |
| | | */ |
| | | @PostMapping(value = "/cos/signUrl") |
| | | Result signUrl(@RequestBody FileSignVo fileSignVo); |
| | | |
| | | /** |
| | | *生成上传签名 |
| | | * @param fileSignVo 对象 |
| | | * @return 使用FileSignReturnVo转化 |
| | | */ |
| | | @PostMapping(value = "/cos/policy") |
| | | Result policy(@RequestBody FileSignVo fileSignVo); |
| | | |
| | | } |