package com.infoepoch.pms.agent.platform.agent.application.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 修改智能体字段请求 DTO。
 */
@Getter
@Setter
public class UpdateAgentFieldRequest {

    @NotBlank(message = "字段标识名不能为空")
    @Size(max = 100, message = "字段标识名不能超过100个字符")
    private String fieldName;

    @NotBlank(message = "字段显示标签不能为空")
    @Size(max = 100, message = "字段显示标签不能超过100个字符")
    private String fieldLabel;

    @NotBlank(message = "字段类型不能为空")
    @Size(max = 20, message = "字段类型不能超过20个字符")
    private String fieldType;

    @Size(max = 30, message = "日期格式不能超过30个字符")
    private String dateFormat;

    private List<String> enumOptions;

    @NotNull(message = "是否必填不能为空")
    private Boolean required;

    private String description;

    private int sortOrder = 0;
}
