package com.backendsys.entity.Ai.Aizn.AiznGood.AiznGoodCompoundTask;

import com.backendsys.entity.validator.RangeArray;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AiznGoodCompoundTaskDTO {

    @NotEmpty(message="图片不能为空")
    private String image_url;

//    @NotEmpty(message="风格不能为空")
//    private String style;

//    @NotNull(message="子类型不能为空")
//    private Integer sub_type;

    @NotNull(message="比例不能为空")
    private Float ratio;

    @NotNull(message="数量不能为空")
    @RangeArray(message="数量取值有误，范围应是(1, 2, 3, 4)", value = { "1", "2", "3", "4" })
    private Integer output_num;

    @NotNull(message="extend_fields 不能为空")
    private ExtendFieldsDTO extend_fields;

}
