Merge pull request '正则校验修改' (#66) from wanjia9506/gitlink-notification-system:dev_gitlink_model into master
This commit is contained in:
commit
1335bdbcd8
|
|
@ -10,7 +10,7 @@ import javax.validation.constraints.Pattern;
|
|||
public class DeleteNotificationsVo {
|
||||
@ApiModelProperty(value = "消息ids", required = true)
|
||||
@NotBlank
|
||||
@Pattern(regexp = "^\\d+(,\\d+)*$", message = "消息id串非法")
|
||||
@Pattern(regexp = "^(\\-|\\+?)\\d+(,\\d+)*$", message = "消息id串非法")
|
||||
private String notificationIds;
|
||||
|
||||
@ApiModelProperty(value = "消息接收者", required = true)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public class NewSysNotificationParamsVo {
|
|||
private Integer sender;
|
||||
|
||||
@ApiModelProperty(value = "消息接收者", required = true)
|
||||
@Pattern(regexp = "^\\d+(,\\d+)*$", message = "接收者id串非法")
|
||||
@Pattern(regexp = "^(\\-|\\+?)\\d+(,\\d+)*$", message = "接收者id串非法")
|
||||
@NotBlank(message = "消息接收者不能为空")
|
||||
private String receivers;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public class NewSysNotificationVo {
|
|||
private Integer sender;
|
||||
|
||||
@ApiModelProperty(value = "消息接收者", required = true)
|
||||
@Pattern(regexp = "^\\d+(,\\d+)*$", message = "接收者id串非法")
|
||||
@Pattern(regexp = "^(\\-|\\+?)\\d+(,\\d+)*$", message = "接收者id串非法")
|
||||
@NotBlank(message = "消息接收者不能为空")
|
||||
private String receivers;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import javax.validation.constraints.Pattern;
|
|||
public class UpdateNotificationStatusParamsVo {
|
||||
@ApiModelProperty(value = "消息ids", required = true)
|
||||
@NotBlank
|
||||
@Pattern(regexp = "^\\d+(,\\d+)*$", message = "消息id串非法")
|
||||
@Pattern(regexp = "^(\\-|\\+?)\\d+(,\\d+)*$", message = "消息id串非法")
|
||||
private String notificationIds;
|
||||
|
||||
@ApiModelProperty(value = "已读状态: 1未读,2已读", required = true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue