package com.ai.da.model.dto;

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.util.List;

@Data
public class DesignSingleDTO {

    @ApiModelProperty("designItemId")
    @NotNull(message = "designItemId.cannot.be.empty")
    private Long designItemId;

    @ApiModelProperty("priority 数组,列表中包含服饰的顺序，越右边的表示越外层的衣服 例如[\"Outwear\", \"Dress\"]表示outwear在dress里面")
    @NotEmpty(message = "priority.cannot.be.empty")
    private List<String> priority;

    @NotEmpty(message = "clothes.cannot.be.empty")
    @ApiModelProperty("clothes 元素")
    private List<DesignSingleItemDTO> clothes;

    @ApiModelProperty("others 元素")
    private List<DesignSingleItemDTO> others;

    private DesignSingleItemDTO designSingleItem;

    @ApiModelProperty("preview -> true  submit -> false")
    private Boolean isPreview;

    @NotBlank(message = "timeZone.cannot.be.empty")
    @ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
    private String timeZone;

}
