package com.xinelu.manage.dto.labelfieldcontent;

import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import com.xinelu.manage.domain.labelfieldcontent.LabelFieldContent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 标签字段内容AddDTO
 *
 * @author : youxilong
 * @date : 2024/3/11 17:09
 */
@Data
@ApiModel(value ="标签字段内容AddDTO")
public class LabelFieldContentAddDTO {

    /**
     * 画像标签和知识库字段表id
     */
    @NotBlank(message = "画像标签和知识库字段表id不能为空", groups = {Insert.class, Update.class})
    @ApiModelProperty(value = "画像标签和知识库字段表id")
    private Long fieldId;

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


    /**
     * 标签字段内容对象集合
     */
    @ApiModelProperty(value = "标签字段内容对象集合")
    private List<LabelFieldContentDTO> fieldContentList;

}
