后台-文章管理:初始浏览量填写负数时报错

This commit is contained in:
TinyAnts 2023-01-18 16:31:59 +08:00
parent f6589a8e33
commit c10464d873
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public class ArticleCreateValidate implements Serializable {
private String summary = "";
@DecimalMin(value = "0", message = "初始浏览量不能少于0")
private Integer visit = 0;
}

View File

@ -49,6 +49,7 @@ public class ArticleUpdateValidate implements Serializable {
private String summary = "";
@DecimalMin(value = "0", message = "初始浏览量不能少于0")
private Integer visit = 0;
}