package com.codvision.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.codvision.commoncore.enums.SqlOperator;
import com.codvision.webcore.annotation.QueryCondition;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统标签
 * </p>
 *
 * @author lingee
 * @since 2023-11-17
 */
@Data
@TableName("tbl_sys_tag")
@ApiModel(value = "SysTag", description = "系统标签")
public class SysTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标签名称")
    @QueryCondition(condition = SqlOperator.LIKE)
    private String tagName;

    @ApiModelProperty("标签所属模块（存字典项表中的item_value）")
    @QueryCondition(condition = SqlOperator.EQ)
    private String dictItemValue;

    @ApiModelProperty("排序字段")
    private Integer sort;

    @ApiModelProperty("删除标记,1:已删除,0:正常")
    private Short delFlag;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    private Integer delKey;

    @ApiModelProperty("标签描述")
    private String tagDescription;

    @ApiModelProperty("父id")
    @QueryCondition(condition = SqlOperator.EQ)
    private Integer parentId;

    @ApiModelProperty("级别")
    private Short level;

    @ApiModelProperty("标签名称路径")
    private String path;

    @ApiModelProperty("标签id路径")
    private String idPath;

    @ApiModelProperty("标签颜色")
    private String color;


}
