TASK: 全局异常优化;
This commit is contained in:
@@ -19,15 +19,15 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("chatRobot 对话")
|
||||
public class ChatSendDTO {
|
||||
|
||||
@NotNull(message = "userId cannot be empty!")
|
||||
@NotNull(message = "userId.cannot.be.empty")
|
||||
@ApiModelProperty("用户id")
|
||||
private Long user_id;
|
||||
|
||||
@NotBlank(message = "sessionId cannot be empty!")
|
||||
@NotBlank(message = "sessionId.cannot.be.empty")
|
||||
@ApiModelProperty("会话ID")
|
||||
private String session_id;
|
||||
|
||||
@NotBlank(message = "Please input the message !")
|
||||
@NotBlank(message = "message.cannot.be.empty")
|
||||
@ApiModelProperty("消息")
|
||||
private String message;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.Date;
|
||||
@AllArgsConstructor
|
||||
public class CollectionElementUploadDTO {
|
||||
|
||||
@NotNull(message = "文件不能为空!")
|
||||
@NotNull(message = "file.cannot.be.empty")
|
||||
private MultipartFile file;
|
||||
|
||||
@ApiModelProperty("一级类型")
|
||||
|
||||
@@ -11,15 +11,15 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("生成印花")
|
||||
public class CollectionGeneratePrintDTO {
|
||||
|
||||
@NotNull(message = "file select2Id cannot be empty!")
|
||||
@NotNull(message = "select1Id.cannot.be.empty")
|
||||
@ApiModelProperty("选择的第一个print文件id")
|
||||
private Long select1Id;
|
||||
|
||||
@NotNull(message = "file select2Id cannot be empty!")
|
||||
@NotNull(message = "select2Id.cannot.be.empty")
|
||||
@ApiModelProperty("选择的第一个print文件id")
|
||||
private Long select2Id;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
|
||||
@@ -15,10 +15,10 @@ public class CollectionSavePrintDTO {
|
||||
|
||||
@ApiModelProperty("生成的印花绝对路径")
|
||||
@Size(max = 15, message = "Save up to 15 prints at a time!")
|
||||
@NotEmpty(message = "printId cannot be empty!")
|
||||
@NotEmpty(message = "printId.cannot.be.empty")
|
||||
private List<String> printId;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
|
||||
|
||||
@@ -14,15 +14,15 @@ public class CollectionSketchDTO {
|
||||
@ApiModelProperty("sketchBoardId 元素id")
|
||||
private Long sketchBoardId;
|
||||
|
||||
@NotNull(message = "isPin cannot be empty")
|
||||
@NotNull(message = "isPin.cannot.be.empty")
|
||||
@ApiModelProperty("是否pin 1 pin 0 不pin")
|
||||
private Byte isPin;
|
||||
|
||||
@NotBlank(message = "level2Type cannot be empty")
|
||||
@NotBlank(message = "level2Type.cannot.be.empty")
|
||||
@ApiModelProperty("二级类型 Outwear Dress Blouse Skirt Trousers")
|
||||
private String level2Type;
|
||||
|
||||
@NotBlank(message = "designType cannot be empty")
|
||||
@NotBlank(message = "designType.cannot.be.empty")
|
||||
@ApiModelProperty("design类型 用户design生成时候区别library和collection")
|
||||
private String designType;
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ import java.util.List;
|
||||
public class DesignSingleDTO {
|
||||
|
||||
@ApiModelProperty("designItemId")
|
||||
@NotNull(message = "designItemId cannot be empty!")
|
||||
@NotNull(message = "designItemId.cannot.be.empty")
|
||||
private Long designItemId;
|
||||
|
||||
@ApiModelProperty("priority 数组,列表中包含服饰的顺序,越右边的表示越外层的衣服 例如[\"Outwear\", \"Dress\"]表示outwear在dress里面")
|
||||
@NotEmpty(message = "priority cannot be empty!")
|
||||
@NotEmpty(message = "priority.cannot.be.empty")
|
||||
private List<String> priority;
|
||||
|
||||
@NotEmpty(message = "clothes cannot be empty!")
|
||||
@NotEmpty(message = "clothes.cannot.be.empty")
|
||||
@ApiModelProperty("clothes 元素")
|
||||
private List<DesignSingleItemDTO> clothes;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class DesignSingleDTO {
|
||||
@ApiModelProperty("preview -> true submit -> false")
|
||||
private Boolean isPreview;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
|
||||
|
||||
@@ -11,20 +11,20 @@ import java.util.List;
|
||||
public class DesignSingleIncludeLayersDTO {
|
||||
|
||||
@ApiModelProperty("designItemId")
|
||||
@NotNull(message = "designItemId cannot be empty!")
|
||||
@NotNull(message = "designItemId.cannot.be.empty")
|
||||
private Long designItemId;
|
||||
|
||||
private List<DesignSingleItemDTO> designSingleItemDTOList;
|
||||
|
||||
@NotNull(message = "isPreview cannot be null")
|
||||
@NotNull(message = "isPreview.cannot.be.empty")
|
||||
@ApiModelProperty("preview -> true submit -> false")
|
||||
private Boolean isPreview;
|
||||
|
||||
@NotNull(message = "processId cannot be null")
|
||||
@NotNull(message = "processId.cannot.be.empty")
|
||||
@ApiModelProperty("进度")
|
||||
private String processId;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
|
||||
@@ -9,18 +9,18 @@ import java.util.List;
|
||||
@Data
|
||||
public class DesignSingleItemDTO {
|
||||
|
||||
@NotBlank(message = "id cannot be empty!")
|
||||
@NotBlank(message = "id.cannot.be.empty")
|
||||
@ApiModelProperty("切换图片对应的id")
|
||||
private Long id;
|
||||
|
||||
@NotBlank(message = "type cannot be empty!")
|
||||
@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!")
|
||||
@NotBlank(message = "color.cannot.be.empty")
|
||||
@ApiModelProperty("颜色 存 RGB值 中间空格分隔 比如 \"58 58 169\"")
|
||||
private String color;
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("生成高级design 入参")
|
||||
public class GenerateHighDesignDTO {
|
||||
|
||||
@NotNull(message = "designItem id cannot be empty!")
|
||||
@NotNull(message = "designItemId.cannot.be.empty")
|
||||
@ApiModelProperty("design的designItemId")
|
||||
private Long designItemId;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
|
||||
@@ -11,18 +11,18 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("Generate like入参")
|
||||
public class GenerateLikeDTO {
|
||||
|
||||
@NotNull(message = "generateDetail id cannot be empty!")
|
||||
@NotNull(message = "generateDetailId.cannot.be.empty")
|
||||
@ApiModelProperty("generateDetailId")
|
||||
private Long generateDetailId;
|
||||
|
||||
@NotBlank(message = "level1Type cannot be empty!")
|
||||
@NotBlank(message = "level1Type.cannot.be.empty")
|
||||
@ApiModelProperty("一级类型 Sketchboard Printboard")
|
||||
private String level1Type;
|
||||
|
||||
@ApiModelProperty("当一级类型为Sketchboard时,二级类型 Outwear Dress Blouse Skirt Trousers")
|
||||
private String level2Type;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@ import javax.validation.constraints.NotNull;
|
||||
@Data
|
||||
@ApiModel("根据rgb数组批量获取潘通rgb")
|
||||
public class GetRgbByHsvBatchDTO {
|
||||
@NotNull(message = "r cannot be empty!")
|
||||
@NotNull(message = "h.cannot.be.empty")
|
||||
@ApiModelProperty("h值")
|
||||
private Integer h;
|
||||
@NotNull(message = "g cannot be empty!")
|
||||
@NotNull(message = "s.cannot.be.empty")
|
||||
@ApiModelProperty("s值")
|
||||
private Integer s;
|
||||
@NotNull(message = "b cannot be empty!")
|
||||
@NotNull(message = "v.cannot.be.empty")
|
||||
@ApiModelProperty("v值")
|
||||
private Integer v;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("History删除")
|
||||
public class HistoryDeleteDTO {
|
||||
|
||||
@NotNull(message = "userGroupId cannot be empty!")
|
||||
@NotNull(message = "userGroupId.cannot.be.empty")
|
||||
@ApiModelProperty("history 分组id")
|
||||
private Long userGroupId;
|
||||
|
||||
|
||||
@@ -13,15 +13,15 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("History编辑")
|
||||
public class HistoryUpdateDTO {
|
||||
|
||||
@NotNull(message = "userGroupId cannot be empty!")
|
||||
@NotNull(message = "userGroupId.cannot.be.empty")
|
||||
@ApiModelProperty("history 分组id")
|
||||
private Long userGroupId;
|
||||
|
||||
@NotBlank(message = "userGroupName cannot be empty!")
|
||||
@NotBlank(message = "userGroupName.cannot.be.empty")
|
||||
@ApiModelProperty("history 分组名称")
|
||||
private String userGroupName;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public class LibraryModelPointDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotNull(message = "libraryId cannot be empty!")
|
||||
@NotNull(message = "libraryId.cannot.be.empty")
|
||||
@ApiModelProperty("libraryId")
|
||||
private Long libraryId;
|
||||
|
||||
@@ -32,31 +32,31 @@ public class LibraryModelPointDTO implements Serializable {
|
||||
@ApiModelProperty("templateId")
|
||||
private Long templateId;
|
||||
|
||||
@NotEmpty(message = "shoulderLeft cannot be empty!")
|
||||
@NotEmpty(message = "shoulderLeft.cannot.be.empty")
|
||||
@ApiModelProperty("左肩 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> shoulderLeft;
|
||||
|
||||
@NotEmpty(message = "shoulderRight cannot be empty!")
|
||||
@NotEmpty(message = "shoulderRight.cannot.be.empty")
|
||||
@ApiModelProperty("右肩 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> shoulderRight;
|
||||
|
||||
@NotEmpty(message = "waistbandLeft cannot be empty!")
|
||||
@NotEmpty(message = "waistbandLeft.cannot.be.empty")
|
||||
@ApiModelProperty("左腰 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> waistbandLeft;
|
||||
|
||||
@NotEmpty(message = "waistbandRight cannot be empty!")
|
||||
@NotEmpty(message = "waistbandRight.cannot.be.empty")
|
||||
@ApiModelProperty("右腰 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> waistbandRight;
|
||||
|
||||
@NotEmpty(message = "handLeft cannot be empty!")
|
||||
@NotEmpty(message = "handLeft.cannot.be.empty")
|
||||
@ApiModelProperty("左手 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> handLeft;
|
||||
|
||||
@NotEmpty(message = "handRight cannot be empty!")
|
||||
@NotEmpty(message = "handRight.cannot.be.empty")
|
||||
@ApiModelProperty("右手 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> handRight;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull;
|
||||
@AllArgsConstructor
|
||||
public class LibraryUploadDTO {
|
||||
|
||||
@NotNull(message = "文件不能为空!")
|
||||
@NotNull(message = "file.cannot.be.empty")
|
||||
private MultipartFile file;
|
||||
|
||||
@ApiModelProperty("一级类型")
|
||||
|
||||
@@ -30,31 +30,31 @@ public class ModelsDotDTO implements Serializable {
|
||||
@ApiModelProperty("templateId 编辑时预览用")
|
||||
private Long templateId;
|
||||
|
||||
@NotEmpty(message = "shoulderLeft cannot be empty!")
|
||||
@NotEmpty(message = "shoulderLeft.cannot.be.empty")
|
||||
@ApiModelProperty("左肩 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> shoulderLeft;
|
||||
|
||||
@NotEmpty(message = "shoulderRight cannot be empty!")
|
||||
@NotEmpty(message = "shoulderRight.cannot.be.empty")
|
||||
@ApiModelProperty("右肩 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> shoulderRight;
|
||||
|
||||
@NotEmpty(message = "waistbandLeft cannot be empty!")
|
||||
@NotEmpty(message = "waistbandLeft.cannot.be.empty")
|
||||
@ApiModelProperty("左腰 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> waistbandLeft;
|
||||
|
||||
@NotEmpty(message = "waistbandRight cannot be empty!")
|
||||
@NotEmpty(message = "waistbandRight.cannot.be.empty")
|
||||
@ApiModelProperty("右腰 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> waistbandRight;
|
||||
|
||||
@NotEmpty(message = "handLeft cannot be empty!")
|
||||
@NotEmpty(message = "handLeft.cannot.be.empty")
|
||||
@ApiModelProperty("左手 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> handLeft;
|
||||
|
||||
@NotEmpty(message = "handRight cannot be empty!")
|
||||
@NotEmpty(message = "handRight.cannot.be.empty")
|
||||
@ApiModelProperty("右手 数组传类似 [0.2, 0.2]")
|
||||
private List<BigDecimal> handRight;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@NotBlank(message = "timeZone.cannot.be.empty")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
/**
|
||||
|
||||
@@ -10,15 +10,15 @@ import javax.validation.constraints.NotBlank;
|
||||
@ApiModel("短信发送")
|
||||
public class NoteSendDTO {
|
||||
|
||||
@NotBlank(message = " 手机[区域/国家]号不能为空!")
|
||||
@NotBlank(message = "regionNum.cannot.be.empty")
|
||||
@ApiModelProperty("[区域/国家]号 示例如 852 香港 不支持中国")
|
||||
private String regionNum;
|
||||
|
||||
@NotBlank(message = "手机号不能为空!")
|
||||
@NotBlank(message = "phone.cannot.be.empty")
|
||||
@ApiModelProperty("手机号")
|
||||
private String phone;
|
||||
|
||||
@NotBlank(message = "操作类型不能为空!")
|
||||
@NotBlank(message = "operationType.cannot.be.empty")
|
||||
@ApiModelProperty("操作类型 LOGIN 登入 FORGET_PWD 忘记密码")
|
||||
private String operationType;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import javax.validation.constraints.NotBlank;
|
||||
@ApiModel("Library分页查询")
|
||||
public class QueryLibraryPageDTO extends PageQueryBaseVo {
|
||||
|
||||
@NotBlank(message = "level1Type cannot be empty!")
|
||||
@NotBlank(message = "level1Type.cannot.be.empty")
|
||||
@ApiModelProperty("一级类型")
|
||||
private String level1Type;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import javax.validation.constraints.NotBlank;
|
||||
@ApiModel("LibraryTop分页查询")
|
||||
public class QueryLibraryTopPageDTO extends PageQueryBaseVo {
|
||||
|
||||
@NotBlank(message = "type cannot be empty!")
|
||||
@NotBlank(message = "type.cannot.be.empty")
|
||||
@ApiModelProperty("类型 Top , Bottom ,Print ")
|
||||
private String type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user