package com.ai.da.model.dto;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel("修改imageToSketch提取出的sketch")
@Data
public class GenerateModifyDTO {
    @NotBlank(message = "image cannot be empty")
    @ApiModelProperty(value = "需要保存的图片的base64格式", required = true)
    private String base64;

    @NotBlank(message = "gender cannot be empty")
    @ApiModelProperty(value = "sketch所属性别", required = true)
    private String gender;

    @NotBlank(message = "category cannot be empty")
    @ApiModelProperty(value = "sketch所属分类", required = true)
    private String category;

    @NotNull(message = "id cannot be empty")
    @ApiModelProperty(value = "原图id", required = true)
    private Long originalId;

    @NotBlank(message = "original Id Source cannot be empty")
    @ApiModelProperty(value = "原图id的来源 Library  || Generate || Collection", required = true)
    private String originalIdSource;

    @NotNull(message = "isOverride cannot be empty")
    @ApiModelProperty("是否覆盖原图")
    private Boolean isOverride;

    @NotBlank(message = "type cannot be empty")
    @ApiModelProperty("类型 Sketchboard || Printboard")
    @Pattern(regexp = "Sketchboard|Printboard", message = "type只能填入Sketchboard 或 Printboard")
    private String type;
}
