package com.chushang.system.entity.po;

import javax.validation.constraints.NotBlank;
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.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serial;

/**
 * 参数配置表 sys_config
 *
 * @author ruoyi
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_config")
public class SysConfig extends BaseEntity
{
    @Serial
    private static final long serialVersionUID = 1L;

    /** 参数主键 */
    @TableId(value = "config_id", type = IdType.ASSIGN_ID)
    @ExcelProperty(value = "参数主键", index = 0)
    private Long configId;

    /** 参数名称 */
    @ExcelProperty(value = "参数名称", index = 1)
    private String configName;

    /** 参数键名 */
    @ExcelProperty(value = "参数键名", index = 2)
    private String configKey;

    /** 参数键值 */
    @ExcelProperty(value = "参数键值", index = 3)
    private String configValue;

    /** 系统内置（Y是 N否） */
    @ExcelProperty(value = "系统内置", index = 4)
    private String configType;


    /**
     * 创建人
     */
    @TableField(
            value = "create_by",
            updateStrategy = FieldStrategy.NEVER
    )
    @ExcelProperty(value = "创建人", index = 5)
    private String createBy;
    /**
     * 修改人
     */
    @TableField(
            value = "update_by",
            insertStrategy = FieldStrategy.NEVER
    )
    @ExcelProperty(value = "修改人", index = 6)
    private String updateBy;

}
