潘志宝
4 天以前 3903c6f4ef7f5fa7dd931bbffc51d0ce0d6f0af1
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.infra.controller.admin.file.vo.file;
H 2
3 import io.swagger.v3.oas.annotations.media.Schema;
4 import lombok.AllArgsConstructor;
5 import lombok.Data;
6 import lombok.NoArgsConstructor;
7
8 @AllArgsConstructor
9 @NoArgsConstructor
10 @Schema(description = "管理后台 - 文件预签名地址 Response VO")
11 @Data
12 public class FilePresignedUrlRespVO {
13
14     @Schema(description = "配置编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11")
15     private Long configId;
16
17     @Schema(description = "文件上传 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://s3.cn-south-1.qiniucs.com/ruoyi-vue-pro/758d3a5387507358c7236de4c8f96de1c7f5097ff6a7722b34772fb7b76b140f.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=3TvrJ70gl2Gt6IBe7_IZT1F6i_k0iMuRtyEv4EyS%2F20240217%2Fcn-south-1%2Fs3%2Faws4_request&X-Amz-Date=20240217T123222Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=a29f33770ab79bf523ccd4034d0752ac545f3c2a3b17baa1eb4e280cfdccfda5")
18     private String uploadUrl;
19
20     /**
21      * 为什么要返回 url 字段?
22      *
23      * 前端上传完文件后,需要使用该 URL 进行访问
24      */
25     @Schema(description = "文件访问 URL", requiredMode = Schema.RequiredMode.REQUIRED,
26             example = "https://test.iailab.iocoder.cn/758d3a5387507358c7236de4c8f96de1c7f5097ff6a7722b34772fb7b76b140f.png")
27     private String url;
28
29 }