package com.cloudroam.dto.sysDict;
|
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
import org.hibernate.validator.constraints.Length;
|
|
import javax.validation.constraints.NotEmpty;
|
|
/**
|
* @author taojie
|
* @author taojie
|
* 字典/更新数据传输对象
|
*/
|
@Data
|
@NoArgsConstructor
|
public class CreateOrUpdateSysDictItemDTO {
|
|
/**
|
* 字典id
|
*/
|
@NotEmpty(message = "父字典不能为空")
|
private String dictId;
|
|
/**
|
* 字典项id
|
*/
|
private String id;
|
/**
|
* 字典标签
|
*/
|
@NotEmpty(message = "字典标签不能为空")
|
@Length(max = 100, message = "字典标签不能超过100个字符")
|
private String label;
|
|
/**
|
* 字典值
|
*/
|
@NotEmpty(message = "字典值不能为空")
|
@Length(max = 100, message = "字典值不能超过100个字符")
|
private String value;
|
|
/**
|
* 排序
|
*/
|
private Integer sort;
|
|
private String dictType;
|
|
}
|