提交 | 用户 | 时间
|
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 javax.validation.constraints.NotNull; |
|
5 |
import lombok.Data; |
|
6 |
|
|
7 |
@Schema(description = "管理后台 - 文件创建 Request VO") |
|
8 |
@Data |
|
9 |
public class FileCreateReqVO { |
|
10 |
|
|
11 |
@NotNull(message = "文件配置编号不能为空") |
|
12 |
@Schema(description = "文件配置编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11") |
|
13 |
private Long configId; |
|
14 |
|
|
15 |
@NotNull(message = "文件路径不能为空") |
|
16 |
@Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab.jpg") |
|
17 |
private String path; |
|
18 |
|
|
19 |
@NotNull(message = "原文件名不能为空") |
|
20 |
@Schema(description = "原文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab.jpg") |
|
21 |
private String name; |
|
22 |
|
|
23 |
@NotNull(message = "文件 URL不能为空") |
|
24 |
@Schema(description = "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.baidu.com/iailab.jpg") |
|
25 |
private String url; |
|
26 |
|
|
27 |
@Schema(description = "文件 MIME 类型", example = "application/octet-stream") |
|
28 |
private String type; |
|
29 |
|
|
30 |
@Schema(description = "文件大小", example = "2048", requiredMode = Schema.RequiredMode.REQUIRED) |
|
31 |
private Integer size; |
|
32 |
|
|
33 |
} |