swagger注释完善

This commit is contained in:
万佳 2021-09-14 11:45:02 +08:00
parent 4baf055482
commit 0c7b9f09bd
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
public class DeleteNotificationsVo {
@ApiModelProperty(value = "消息ids", required = true)
@ApiModelProperty(value = "消息ids,'-1' 全部消息", required = true)
@NotBlank
@Pattern(regexp = "^(\\-|\\+?)\\d+(,\\d+)*$", message = "消息id串非法")
private String notificationIds;
@ -17,7 +17,7 @@ public class DeleteNotificationsVo {
@NotNull(message = "消息接收者不能为空")
private Integer receiver;
@ApiModelProperty(value = "消息类型 1-系统消息 2-@我", required = true)
@ApiModelProperty(value = "消息类型 -1全部 1-系统消息 2-@我", required = true)
@Range(min = -1, max = 2)
@NotNull(message = "消息类型不能为空")
private Integer type;

View File

@ -13,7 +13,7 @@ import javax.validation.constraints.Pattern;
* @time: 2021/9/10
*/
public class UpdateNotificationStatusParamsVo {
@ApiModelProperty(value = "消息ids", required = true)
@ApiModelProperty(value = "消息ids,'-1' 全部消息", required = true)
@NotBlank
@Pattern(regexp = "^(\\-|\\+?)\\d+(,\\d+)*$", message = "消息id串非法")
private String notificationIds;
@ -27,7 +27,7 @@ public class UpdateNotificationStatusParamsVo {
@NotNull(message = "消息接收者不能为空")
private Integer receiver;
@ApiModelProperty(value = "消息类型 1-系统消息 2-@我", required = true)
@ApiModelProperty(value = "消息类型 -1全部 1-系统消息 2-@我", required = true)
@Range(min = -1, max = 2)
@NotNull(message = "消息类型不能为空")
private Integer type;