package com.codvision.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
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 javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author hxl
 */
@Data
@ApiModel(value = "SysDictItem", description = "字典项")
@TableName(value = "tbl_sys_dict_item")
public class SysDictItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @NotNull(message = "字典ID不能为空")
    @ApiModelProperty("字典ID")
    private Integer dictId;

    @ApiModelProperty("数据值")
    private String itemValue;

    @ApiModelProperty("标签名")
    private String label;

    @ApiModelProperty("类型")
    private String dictType;

    @ApiModelProperty("排序值，默认升序")
    private Integer sortOrder;

    @ApiModelProperty("备注信息")
    private String remark;

    @ApiModelProperty("删除标记,1:已删除,0:正常")
    private Integer delFlag;

    @ApiModelProperty("逻辑删除辅助字段")
    private Integer delKey;

}
