提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dict.vo.data; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.enums.CommonStatusEnum; |
|
4 |
import com.iailab.framework.common.validation.InEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import javax.validation.constraints.NotBlank; |
|
9 |
import javax.validation.constraints.NotNull; |
|
10 |
import javax.validation.constraints.Size; |
|
11 |
|
|
12 |
@Schema(description = "管理后台 - 字典数据创建/修改 Request VO") |
|
13 |
@Data |
|
14 |
public class DictDataSaveReqVO { |
|
15 |
|
|
16 |
@Schema(description = "字典数据编号", example = "1024") |
|
17 |
private Long id; |
|
18 |
|
|
19 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
20 |
@NotNull(message = "显示顺序不能为空") |
|
21 |
private Integer sort; |
|
22 |
|
|
23 |
@Schema(description = "字典标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
24 |
@NotBlank(message = "字典标签不能为空") |
|
25 |
@Size(max = 100, message = "字典标签长度不能超过100个字符") |
|
26 |
private String label; |
|
27 |
|
|
28 |
@Schema(description = "字典值", requiredMode = Schema.RequiredMode.REQUIRED, example = "iocoder") |
|
29 |
@NotBlank(message = "字典键值不能为空") |
|
30 |
@Size(max = 100, message = "字典键值长度不能超过100个字符") |
|
31 |
private String value; |
|
32 |
|
|
33 |
@Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
|
34 |
@NotBlank(message = "字典类型不能为空") |
|
35 |
@Size(max = 100, message = "字典类型长度不能超过100个字符") |
|
36 |
private String dictType; |
|
37 |
|
|
38 |
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
39 |
@NotNull(message = "状态不能为空") |
|
40 |
@InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
|
41 |
private Integer status; |
|
42 |
|
|
43 |
@Schema(description = "颜色类型,default、primary、success、info、warning、danger", example = "default") |
|
44 |
private String colorType; |
|
45 |
|
|
46 |
@Schema(description = "css 样式", example = "btn-visible") |
|
47 |
private String cssClass; |
|
48 |
|
|
49 |
@Schema(description = "备注", example = "我是一个角色") |
|
50 |
private String remark; |
|
51 |
|
|
52 |
} |