package com.ai.da.model.dto;

import com.ai.da.mapper.primary.entity.Gradient;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class DesignSingleItemDTO implements Serializable {

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

    @NotEmpty(message = "changed cannot be empty")
    @ApiModelProperty("当前服装的id是否被添加随机数")
    private Boolean changed;

    @NotBlank(message = "designType cannot be empty")
    @ApiModelProperty("当前图片来源于用户上传还是从library选择 Collection/Library")
    private String designType;

    @NotBlank(message = "type.cannot.be.empty")
    @ApiModelProperty("生成item实际对应的类型 有:Outwear,Dress,Blouse,Skirt,Trousers Shoes Hairstyle Earring")
    private String type;

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

    @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 Gradient gradient;

    @ApiModelProperty("画笔修改过的sketch图片的base64格式的数据")
    private String sketchString;

    @ApiModelProperty("衣服上的装饰")
    private DesignSinglePrintDTO trims;

    @ApiModelProperty("标注后的mask 的base64")
    private String maskUrl;

    @ApiModelProperty("mask 的minio地址")
    private String maskMinioUrl;

    private PartialDesignDTO partialDesign;

}
