| | |
| | | /**桶名称-可不传*/ |
| | | private String bucketName; |
| | | |
| | | private String fileName; |
| | | |
| | | private String method; |
| | | |
| | | } |
| | |
| | | @PostMapping(value = "/cos/signUrl") |
| | | Response downloadFile(@RequestBody FileSignVo fileSignVo); |
| | | |
| | | |
| | | /** |
| | | *生成上传签名 |
| | | * @param fileSignVo 对象 |
| | | * @return 使用FileSignReturnVo转化 |
| | | */ |
| | | @PostMapping(value = "/cos/policy") |
| | | Result policy(@RequestBody FileSignVo fileSignVo); |
| | | |
| | | } |
New file |
| | |
| | | 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; |
| | | |
| | | |
| | | |
| | | } |