package com.chushang.system.entity.po;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.chushang.common.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serial;

/**
 * 字典类型表 sys_dict_type
 *
 * @author ruoyi
 */
@Setter
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dict_type")
public class SysDictType extends BaseEntity
{
    @Serial
    private static final long serialVersionUID = 1L;

    /** 字典主键 */
    @TableId(value = "dict_id", type = IdType.ASSIGN_ID)
    @ExcelProperty(value = "字典主键", index = 0)
    private Long dictId;

    /** 字典名称 */
    @ExcelProperty(value = "字典名称", index = 1)
    private String dictName;

    /** 字典类型 */
    @ExcelProperty(value = "字典类型", index = 2)
    private String dictType;

    /** 状态（1正常 0停用） */
    @ExcelProperty(value = "状态", index = 3)
    private Boolean status;
    /**
     * 创建人
     */
    @TableField(
            value = "create_by",
            updateStrategy = FieldStrategy.NEVER
    )
    @ExcelProperty(value = "创建人", index = 4)
    protected String createBy;
    /**
     * 修改人
     */
    @TableField(
            value = "update_by",
            insertStrategy = FieldStrategy.NEVER
    )
    @ExcelProperty(value = "修改人", index = 5)
    protected String updateBy;
}
