package com.aircraft.modules.article.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.aircraft.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 标签表
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
@Data
@TableName("cp_label")
public class CpLabel implements Serializable {


    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "标签/分类名")
    private String name;

    @ApiModelProperty(value = "标签等级（1,2,3...，表示该标签所属层级）")
    private Integer level;

    @ApiModelProperty(value = "父节点id")
    private Integer parentId=null;

    @ApiModelProperty(value = "子节点id")
    private Integer childrenId=null;

    @ApiModelProperty(value = "标签备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "排序号")
    private Integer orderNum;

    @ApiModelProperty(value = "模块号，系统数据字典定义")
    private Integer moduleId;

    @ApiModelProperty(value = "删除标记：“1”已删除，“0”正常")
    private Integer delFlag;

}
