package com.corewing.app.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.corewing.app.common.base.CommonEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 字典实体
 *
 * @author xuyuxiang
 * @date 2022/2/23 18:27
 **/
@Getter
@Setter
@TableName("DEV_DICT")
public class BizDict extends CommonEntity {

    /** id */
    @ApiModelProperty("id")
    private String id;

    /** 父id */
    @ApiModelProperty("父级id")
    private String parentId;

    /** 字典文字 */
    @ApiModelProperty("字典文字")
    private String dictLabel;

    /** 字典值 */
    @ApiModelProperty("字典值")
    private String dictValue;

    /** 分类 */
    @ApiModelProperty("分类")
    private String category;

    /** 排序码 */
    @ApiModelProperty("排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @ApiModelProperty("扩展信息")
    @TableField(insertStrategy = FieldStrategy.ALWAYS, updateStrategy = FieldStrategy.ALWAYS)
    private String extJson;
}
