package com.iailab.module.system.controller.admin.dict.vo.type;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Size;
|
|
@Schema(description = "管理后台 - 字典类型创建/修改 Request VO")
|
@Data
|
public class DictTypeSaveReqVO {
|
|
@Schema(description = "字典类型编号", example = "1024")
|
private Long id;
|
|
@Schema(description = "字典名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "性别")
|
@NotBlank(message = "字典名称不能为空")
|
@Size(max = 100, message = "字典类型名称长度不能超过100个字符")
|
private String name;
|
|
@Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex")
|
@NotNull(message = "字典类型不能为空")
|
@Size(max = 100, message = "字典类型类型长度不能超过 100 个字符")
|
private String type;
|
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "状态不能为空")
|
private Integer status;
|
|
@Schema(description = "备注", example = "快乐的备注")
|
private String remark;
|
|
}
|