fhx
2023-06-29 8a40841a1d2b12d01dada8653b07f07fa8ac1c1d
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,12 @@
    @PostMapping(value = "/cos/download-file")
    Response downloadFile(@RequestBody FileDownDto cosDownDto);
    /**
     *生成签名访问URL
     * @param fileSignVo 对象
     * @return 使用FileSignReturnVo转化
     */
    @PostMapping(value = "/cos/signUrl")
    Response downloadFile(@RequestBody FileSignVo fileSignVo);
}