package com.chushang.system.entity.po;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.chushang.common.mybatis.annotation.Condition;
import com.chushang.common.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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)
    @Condition(name = "config_id", type = Condition.ConditionType.eq)
    private Long configId;

    /** 参数名称 */
    @ExcelProperty(value = "参数名称", index = 1)
    @Condition(name = "config_name", type = Condition.ConditionType.like)
    private String configName;

    /** 参数键名 */
    @ExcelProperty(value = "参数键名", index = 2)
    @Condition(name = "config_key", type = Condition.ConditionType.eq)
    private String configKey;

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

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

}
