From 1cc0e33464c564aaba0c8016097334f0b16586a5 Mon Sep 17 00:00:00 2001 From: wangrenhuang <wangren_huang@163.com> Date: 星期五, 30 六月 2023 20:07:34 +0800 Subject: [PATCH] 新增cos上传签名接口 --- phis-feign/src/main/java/com/hz/his/vo/cos/OssRecoverVO.java | 25 +++++++++++++++++++++++++ phis-feign/src/main/java/com/hz/his/dto/file/FileSignVo.java | 4 ++++ phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java | 9 +++++++++ 3 files changed, 38 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/file/FileSignVo.java b/phis-feign/src/main/java/com/hz/his/dto/file/FileSignVo.java index 8c82c2f..45762f9 100644 --- a/phis-feign/src/main/java/com/hz/his/dto/file/FileSignVo.java +++ b/phis-feign/src/main/java/com/hz/his/dto/file/FileSignVo.java @@ -12,4 +12,8 @@ /**妗跺悕绉�-鍙笉浼�*/ private String bucketName; + private String fileName; + + private String method; + } diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java index b927907..58d843c 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java @@ -55,4 +55,13 @@ @PostMapping(value = "/cos/signUrl") Response downloadFile(@RequestBody FileSignVo fileSignVo); + + /** + *鐢熸垚涓婁紶绛惧悕 + * @param fileSignVo 瀵硅薄 + * @return 浣跨敤FileSignReturnVo杞寲 + */ + @PostMapping(value = "/cos/policy") + Result policy(@RequestBody FileSignVo fileSignVo); + } \ No newline at end of file diff --git a/phis-feign/src/main/java/com/hz/his/vo/cos/OssRecoverVO.java b/phis-feign/src/main/java/com/hz/his/vo/cos/OssRecoverVO.java new file mode 100644 index 0000000..1e05b0b --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/vo/cos/OssRecoverVO.java @@ -0,0 +1,25 @@ +package com.hz.his.vo.cos; + +import lombok.Data; + +/** + * @ClassName OssRecoverVO + * @Description cos鐢熸垚绛惧悕杩斿洖vo + * @Author wrh + * @Date 2023/6/30 17:30 + * @Version 1.0 + */ +@Data +public class OssRecoverVO { + + private String accessid; + //绛惧悕 + private String signature; + private String dir; + private String host; + //杩囨湡鏃堕棿 + private String expire; + + + +} -- Gitblit v1.8.0