Commit 4bb5e3a1 authored by 杨锐's avatar 杨锐

code review done。

parent c1126ab2
......@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.controller.req;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotNull;
......@@ -27,5 +28,6 @@ public class Page {
*/
@ApiModelProperty("the size of the page to be returned")
@NotNull(message = "size不能为空")
@Range(min = 1, max = 1000, message = "size参数必须在1到1000之间")
private Integer size;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment