package com.ai.da.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
public class DesignSingleItemDTO {

    @NotNull(message = "id.cannot.be.empty")
    @ApiModelProperty("切换图片对应的id")
    private Long id;

    @NotBlank(message = "type.cannot.be.empty")
    @ApiModelProperty("生成item实际对应的类型 有:outwear,dress,blouse,skirt,trousers Shoes Hairstyle Earring")
    private String type;

    @ApiModelProperty("对应的图片的minIO路径")
    private String path;

    @NotBlank(message = "color.cannot.be.empty")
    @ApiModelProperty("颜色 存 RGB值 中间空格分隔 比如 \"58 58 169\"")
    private String color;

    @ApiModelProperty("对应的print图片对象")
//    private DesignPythonItemPrint printObject;
    private DesignSinglePrintDTO printObject;

    @ApiModelProperty("图层位置")
    private List<Long> offset;

    @ApiModelProperty("图层缩放比例")
    private Float scale;

    @NotNull(message = "priority.cannot.be.empty")
    @ApiModelProperty("图层优先级")
    private Integer priority;

    @ApiModelProperty("渐变 起始/目标 颜色")
    private List<List<Integer>> gradient;

    @ApiModelProperty("渐变角度")
    private Float gradient_angle;
}
