package com.backendsys.entity.Ai.Aizn.AiznModel;

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

@Data
public class AiznModelTaskDTO {
    @NotEmpty(message="图片不能为空")
    private String image_url;

    private String style;
    @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;
}
