提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.file.vo.config; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
import java.util.Map; |
|
8 |
|
|
9 |
@Schema(description = "管理后台 - 文件配置创建/修改 Request VO") |
|
10 |
@Data |
|
11 |
public class FileConfigSaveReqVO { |
|
12 |
|
|
13 |
@Schema(description = "编号", example = "1") |
|
14 |
private Long id; |
|
15 |
|
|
16 |
@Schema(description = "配置名", requiredMode = Schema.RequiredMode.REQUIRED, example = "S3 - 阿里云") |
|
17 |
@NotNull(message = "配置名不能为空") |
|
18 |
private String name; |
|
19 |
|
|
20 |
@Schema(description = "存储器,参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
21 |
@NotNull(message = "存储器不能为空") |
|
22 |
private Integer storage; |
|
23 |
|
|
24 |
@Schema(description = "存储配置,配置是动态参数,所以使用 Map 接收", requiredMode = Schema.RequiredMode.REQUIRED) |
|
25 |
@NotNull(message = "存储配置不能为空") |
|
26 |
private Map<String, Object> config; |
|
27 |
|
|
28 |
@Schema(description = "备注", example = "我是备注") |
|
29 |
private String remark; |
|
30 |
|
|
31 |
} |