TASK: 全局异常优化;
This commit is contained in:
@@ -11,19 +11,19 @@ import javax.validation.constraints.NotNull;
|
||||
@ApiModel("AccountAdd")
|
||||
public class AccountAddDTO {
|
||||
|
||||
@NotBlank(message = "email cannot be empty!")
|
||||
@NotBlank(message = "email.cannot.be.empty")
|
||||
@ApiModelProperty("email")
|
||||
private String email;
|
||||
|
||||
@NotBlank(message = "userName cannot be empty!")
|
||||
@NotBlank(message = "userName.cannot.be.empty")
|
||||
@ApiModelProperty("userName")
|
||||
private String userName;
|
||||
|
||||
@NotBlank(message = "validStartTime cannot be empty!")
|
||||
@NotBlank(message = "validStartTime.cannot.be.empty")
|
||||
@ApiModelProperty("Start time of account validity ")
|
||||
private String validStartTime;
|
||||
|
||||
@NotBlank(message = "validEndTime cannot be empty!")
|
||||
@NotBlank(message = "validEndTime.cannot.be.empty")
|
||||
@ApiModelProperty("End time of account validity ")
|
||||
private String validEndTime;
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class ChatFlushDTO {
|
||||
@NotNull(message = "userId cannot be empty!")
|
||||
@NotNull(message = "user_id.cannot.be.empty")
|
||||
@ApiModelProperty("用户id")
|
||||
private String user_id;
|
||||
|
||||
@NotBlank(message = "sessionId cannot be empty!")
|
||||
@NotBlank(message = "session_id.cannot.be.empty")
|
||||
@ApiModelProperty("会话ID")
|
||||
private String session_id;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public class CollectionColorDTO {
|
||||
@ApiModelProperty("tcx值")
|
||||
private String tcx;
|
||||
|
||||
@NotBlank(message = "rgb value cannot be empty")
|
||||
@NotBlank(message = "rgbValue.cannot.be.empty")
|
||||
@ApiModelProperty("潘通RGB值")
|
||||
private String rgbValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user