package com.sptg.permissions.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.sptg.common.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * title: Dict
 * package: com.sptg.permissions.api.entity
 * description: 数字字典-实体类
 *
 *                  
 *                
 */
@Getter
@Setter
@TableName(value = "dict")
public class Dict extends BaseEntity {

    /**
     * 父主键
     */
    @TableField(value = "l_pid")
    private Long pid;

    /**
     * 字典码
     */
    @TableField(value = "s_code")
    private String code;

    /**
     * 字典值
     */
    @TableField(value = "s_dict_key")
    private String dictKey;

    /**
     * 字典名称
     */
    @TableField(value = "s_dict_value")
    private String dictValue;

    /**
     * 排序
     */
    @TableField(value = "i_sort")
    private Integer sort;

    /**
     * 字典备注
     */
    @TableField(value = "s_remark")
    private String remark;

    /* -------------------------------------------------------------------------------------------------------------- */
    //  以下为字段非表字段
    /* -------------------------------------------------------------------------------------------------------------- */

    /**
     * 子菜单
     */
    @TableField(exist = false)
    private List<Dict> subList;

}
