package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author chan
 * @date 2022/3/24 上午11:01
 */
@Data
public class CorpTag extends BaseEntity implements Serializable {

    /**
     * 标签组id
     */
    private String groupId;

    /**
     * 标签组名称
     */
    private String groupName;

    /**
     * 标签名称
     */
    private String name;

    /**
     * 标签id
     */
    private String tagId;

    /**
     * 标签所属类型 1普通,2动态
     */
    private Integer type;

    private Long ordered;

    /**
     * 该标签对应的规则
     */
    @TableField(exist = false)
    @DbIgnore
    @JsonProperty("ruleRelationList")
    private List<CorpTagRuleRelation> ruleRelationList;

    /**
     * 动态标签 规则数组名
     */
    @TableField(exist = false)
    @DbIgnore
    @JsonProperty("ruleNameList")
    private List<String> ruleNameList;

    @JsonIgnore
    private String ruleNameListStr;
}
