io.github.wslxm.springbootplus2.manage.sys.model.dto.SysDictDTO Maven / Gradle / Ivy
The newest version!
package io.github.wslxm.springbootplus2.manage.sys.model.dto;
import io.github.wslxm.springbootplus2.core.base.model.Convert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
/**
* 字典表
*
* @author wangsong
* @WX-QQ 1720696548
* @date Sun Nov 24 11:23:12 CST 2019
*/
@Data
@ToString(callSuper = true)
@ApiModel(value = "SysDictDTO", description = "字典表")
public class SysDictDTO extends Convert {
private static final long serialVersionUID = 0L;
@ApiModelProperty(value = "字典类型")
@Range(min = 0, max = 9L, message = "sys.dict.type.Range")
private Integer type;
@ApiModelProperty(value = "字典code")
@Length(min = 0, max = 32, message = "sys.dict.code.Length")
private String code;
@ApiModelProperty(value = "字典名称")
@Length(min = 0, max = 64, message = "sys.dict.name.Length")
private String name;
@ApiModelProperty(value = "父Id")
@Length(min = 0, max = 32, message = "sys.dict.pid.Length")
private String pid;
@ApiModelProperty(value = "描述")
@Length(min = 0, max = 128, message = "sys.dict.desc.Length")
private String desc;
@ApiModelProperty(value = "排序")
@Range(min = 0, max = 2147483647L, message = "sys.dict.sort.Range")
private Integer sort;
@ApiModelProperty(value = "禁用(0-否,1-是)")
@Range(min = 0, max = 9L, message = "sys.dict.disable.Range")
private Integer disable;
@ApiModelProperty(value = "扩展字段 1")
private String ext1;
@ApiModelProperty(value = "扩展字段 2")
private String ext2;
@ApiModelProperty(value = "扩展字段 3")
private String ext3;
}