提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.api.file.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotEmpty; |
|
7 |
|
|
8 |
@Schema(description = "RPC 服务 - 文件创建 Request DTO") |
|
9 |
@Data |
|
10 |
public class FileCreateReqDTO { |
|
11 |
|
|
12 |
@Schema(description = "原文件名称", example = "xxx.png") |
|
13 |
private String name; |
|
14 |
|
|
15 |
@Schema(description = "文件路径", example = "xxx.png") |
|
16 |
private String path; |
|
17 |
|
|
18 |
@Schema(description = "文件内容", requiredMode = Schema.RequiredMode.REQUIRED) |
|
19 |
@NotEmpty(message = "文件内容不能为空") |
|
20 |
private byte[] content; |
|
21 |
|
|
22 |
} |