package com.yh.saas.plugin.yiliangyiyun.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录系统用到的变量
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("common_sys_parameter")
public class CommonSysParameter extends BaseModel<CommonSysParameter> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 变量类别ID
     */
    private String constId;
    /**
     * 变量类别名
     */
    private String constName;
    /**
     * 变量Key（自增数字形式）
     */
    private String constKey;
    /**
     * 变量值
     */
    private String constValue;
    /**
     * 英文变量值
     */
    private String constValueEn;
    /**
     * 变量描述
     */
    private String constDescription;
    /**
     * 顺序
     */
    private int sort;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static class QueryFiles {

        public static final String CONST_ID = "const_id";

        public static final String SORT = "sort";

    }

}
