后台-文章管理:初始浏览量填写负数时报错
This commit is contained in:
parent
f6589a8e33
commit
c10464d873
|
|
@ -46,6 +46,7 @@ public class ArticleCreateValidate implements Serializable {
|
||||||
|
|
||||||
private String summary = "";
|
private String summary = "";
|
||||||
|
|
||||||
|
@DecimalMin(value = "0", message = "初始浏览量不能少于0")
|
||||||
private Integer visit = 0;
|
private Integer visit = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ public class ArticleUpdateValidate implements Serializable {
|
||||||
|
|
||||||
private String summary = "";
|
private String summary = "";
|
||||||
|
|
||||||
|
@DecimalMin(value = "0", message = "初始浏览量不能少于0")
|
||||||
private Integer visit = 0;
|
private Integer visit = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue