提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dict.vo.type; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotBlank; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
import javax.validation.constraints.Size; |
|
9 |
|
|
10 |
@Schema(description = "管理后台 - 字典类型创建/修改 Request VO") |
|
11 |
@Data |
|
12 |
public class DictTypeSaveReqVO { |
|
13 |
|
|
14 |
@Schema(description = "字典类型编号", example = "1024") |
|
15 |
private Long id; |
|
16 |
|
|
17 |
@Schema(description = "字典名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "性别") |
|
18 |
@NotBlank(message = "字典名称不能为空") |
|
19 |
@Size(max = 100, message = "字典类型名称长度不能超过100个字符") |
|
20 |
private String name; |
|
21 |
|
|
22 |
@Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
|
23 |
@NotNull(message = "字典类型不能为空") |
|
24 |
@Size(max = 100, message = "字典类型类型长度不能超过 100 个字符") |
|
25 |
private String type; |
|
26 |
|
|
27 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
28 |
@NotNull(message = "状态不能为空") |
|
29 |
private Integer status; |
|
30 |
|
|
31 |
@Schema(description = "备注", example = "快乐的备注") |
|
32 |
private String remark; |
|
33 |
|
|
34 |
} |