package com.ycl.entity.dict;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author lyq
|
* @since 2022-09-15
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@TableName("ums_data_dictionary")
|
@ApiModel(value = "字典表")
|
public class DataDictionary implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@ApiModelProperty(value = "主键",dataType = "Long")
|
private Long id;
|
|
/**
|
* 字典值
|
*/
|
@TableField("name")
|
@ApiModelProperty(value = "违规中的类型/大类/小类/案由,违建中的/类型/类别",dataType = "String")
|
@NotBlank(message = "字典值为空")
|
private String name;
|
|
/**
|
* 编码
|
*/
|
@TableField("code")
|
@ApiModelProperty(value = "编码 ps:暂时不传",dataType = "String")
|
@NotBlank(message = "编码为空")
|
private String code;
|
|
/**
|
* 父级id
|
*/
|
@TableField("parent_id")
|
@ApiModelProperty(value = "父级id ps:为上一级的id",dataType = "String")
|
private String parentId;
|
|
/**
|
* 层级
|
*/
|
@TableField("level")
|
@ApiModelProperty(value = "级别:违规中类型/大类/小类/案由 分别是1/2/3/4 ,违建中类型/类别 分别是1/2",dataType = "Integer")
|
@NotNull(message = "层级为空")
|
private Short level;
|
|
/**
|
* 字典类型
|
*/
|
@TableField("type_name")
|
@ApiModelProperty(value = "字典类型:违规为问题类型,违建为违建类型",dataType = "String")
|
@NotBlank(message = "字典类型为空")
|
private String typeName;
|
|
/**
|
* 字典类型代码
|
*/
|
@TableField("type_code")
|
@ApiModelProperty(value = "字典类型代码:违规为'01',违建为'06'",dataType = "String")
|
@NotBlank(message = "字典类型为空")
|
private String typeCode;
|
|
/**
|
* 备注
|
*/
|
@TableField("remark")
|
@ApiModelProperty(value = "备注 ps:预留字段",dataType = "String")
|
private String remark;
|
|
}
|