Andru
2023-11-24 c3ef8669eb90a578d8c7761cf934d9a1ce95453c
phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java
@@ -2,6 +2,7 @@
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;
@@ -34,7 +35,7 @@
     * @return
     */
    @RequestMapping(value = "/cos/upload-multipart/name",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName,@RequestParam("bucketName")String fileName);
    Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName,@RequestParam("fileName")String fileName);
    /**
@@ -46,4 +47,20 @@
    @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);
}