TASK: 系统模特高宽调整;全局异常优化;

This commit is contained in:
shahaibo
2023-10-27 14:04:27 +08:00
parent 70055f2f4a
commit 31eb3773f6
8 changed files with 82 additions and 53 deletions

View File

@@ -35,6 +35,10 @@ public class DesignCollectionDTO {
@ApiModelProperty("系统取图比列")
private BigDecimal systemScale;
@NotNull(message = "templateId.cannot.be.empty")
@ApiModelProperty("模特ID")
private Long templateId;
@NotBlank(message = "modelType.cannot.be.empty")
@ApiModelProperty("模特类型:System,Library")
private String modelType;
@@ -43,10 +47,6 @@ public class DesignCollectionDTO {
@ApiModelProperty("模特性别")
private String modelSex;
@NotNull(message = "templateId.cannot.be.empty")
@ApiModelProperty("模特ID")
private Long templateId;
@ApiModelProperty("mood版本id 没有传null")
private String moodTemplateId;

View File

@@ -12,18 +12,18 @@ import java.math.BigDecimal;
@ApiModel("Design like 入参")
public class DesignLikeDTO {
@NotNull(message = "designItemId id cannot be empty!")
@NotNull(message = "designItemId.cannot.be.empty")
@ApiModelProperty("like图片对应的designItemId")
private Long designItemId;
@NotNull(message = "designPythonOutfitId id cannot be empty!")
@NotNull(message = "designPythonOutfitId.cannot.be.empty")
@ApiModelProperty("like图片对应的designItemId")
private Long designPythonOutfitId;
@ApiModelProperty("like design到对应collection 对应的userGroupId,不传表示selected collection 为null")
private Long userGroupId;
@NotBlank(message = "timeZone cannot be empty!")
@NotBlank(message = "timeZone.cannot.be.empty")
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
private String timeZone;
}

View File

@@ -11,15 +11,15 @@ import javax.validation.constraints.NotNull;
@ApiModel("Design dislike 入参")
public class DisDesignLikeDTO {
@NotNull(message = "groupDetailId id cannot be empty!")
@NotNull(message = "groupDetailId.cannot.be.empty")
@ApiModelProperty("dislike图片对应的分组详情id")
private Long groupDetailId;
@NotNull(message = "designId id cannot be empty!")
@NotNull(message = "designId.cannot.be.empty")
@ApiModelProperty("dislike图片到对应的designId中")
private Long designId;
@NotBlank(message = "timeZone cannot be empty!")
@NotBlank(message = "timeZone.cannot.be.empty")
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
private String timeZone;
}

View File

@@ -14,7 +14,7 @@ import java.util.List;
@ApiModel("重新设计Collection 入参")
public class ReDesignCollectionDTO {
@NotNull(message = "collectionId id cannot be empty!")
@NotNull(message = "collectionId.cannot.be.empty")
@ApiModelProperty("collectionId")
private Long collectionId;
@@ -24,7 +24,7 @@ public class ReDesignCollectionDTO {
@ApiModelProperty("印花板图片 数组")
private List<DesignCollectionPrintElementDTO> printBoards;
@NotEmpty(message = "colorBoardRgbValues cannot be empty!")
@NotEmpty(message = "colorBoards.cannot.be.empty")
@ApiModelProperty("颜色板RGB值 数组")
private List<CollectionColorDTO> colorBoards;
@@ -34,27 +34,34 @@ public class ReDesignCollectionDTO {
@ApiModelProperty("市场手稿板图片id 数组")
private List<DesignCollectionElementDTO> marketingSketchs;
@NotNull(message = "systemScale cannot be empty!")
@NotNull(message = "colorBoards.cannot.be.empty")
@ApiModelProperty("系统取图比列")
private BigDecimal systemScale;
@ApiModelProperty("templateId")
@NotNull(message = "templateId.cannot.be.empty")
@ApiModelProperty("模特ID")
private Long templateId;
@NotBlank(message = "modelType.cannot.be.empty")
@ApiModelProperty("模特类型:System,Library")
private String modelType;
@NotBlank(message = "modelSex.cannot.be.empty")
@ApiModelProperty("模特性别")
private String modelSex;
@NotBlank(message = "singleOverall cannot be empty!")
@NotBlank(message = "singleOverall.cannot.be.empty")
@ApiModelProperty("控制生成类型的参数两个选项outfit时候传 single , 另外一个传 overall")
private String singleOverall;
@ApiModelProperty("single模式下的类别选择参数 选项有outwear,dress,blouse,skirt,trousers")
private String switchCategory;
@NotBlank(message = "timeZone cannot be empty!")
@NotBlank(message = "timeZone.cannot.be.empty")
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
private String timeZone;
@NotBlank(message = "processId.cannot.be.empty")
@ApiModelProperty("python端design进程ID")
private String processId;
}