package com.xinelu.manage.domain.labelfieldinfo;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 标签字段信息对象 label_field_info
 *
 * @author xinelu
 * @date 2024-03-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "标签字段信息对象", description = "label_field_info")
public class LabelFieldInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 字段名称
     */
    @ApiModelProperty(value = "字段名称")
    @Excel(name = "字段名称")
    @NotBlank(message = "字段名称不能为空", groups = {Insert.class, Update.class})
    private String fieldName;

    /**
     * 字段编码
     */
    @ApiModelProperty(value = "字段编码")
    @Excel(name = "字段编码")
    private String fieldCode;

    /**
     * 字段类型，画像标签字段：PORTRAIT_LABEL_FIELD，知识库字段：KNOWLEDGE_FIELD
     */
    @ApiModelProperty(value = "字段类型，画像标签字段：PORTRAIT_LABEL_FIELD，知识库字段：KNOWLEDGE_FIELD")
    @Excel(name = "字段类型，画像标签字段：PORTRAIT_LABEL_FIELD，知识库字段：KNOWLEDGE_FIELD")
    @NotBlank(message = "字段类型不能为空", groups = {Insert.class, Update.class})
    private String fieldType;

    /**
     * 字段排序
     */
    @ApiModelProperty(value = "字段排序")
    @Excel(name = "字段排序")
    private Integer fieldSort;

    /**
     * 字段备注信息
     */
    @ApiModelProperty(value = "字段备注信息")
    @Excel(name = "字段备注信息")
    private String fieldRemark;
}
