Commit 3f59db3d by licy

分页参数非空校验调整

1 parent 6f82b1a6
......@@ -7,6 +7,8 @@ import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @author zhouhaibao
......@@ -18,9 +20,11 @@ import lombok.Data;
public class FunctionListSearchRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "分页数",required = true)
@NotNull
private Integer pageSize;
@ApiModelProperty(notes = "当前页",required = true)
@NotNull
private Integer pageNumer;
/**
......
......@@ -4,6 +4,7 @@ import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
......@@ -22,9 +23,11 @@ public class ProductSearchRequest extends AbstractRopRequest implements Serializ
private String productName;
@ApiModelProperty(notes = "分页数",required = true)
@NotNull
private Integer pageSize;
@ApiModelProperty(notes = "当前页",required = true)
@NotNull
private Integer pageNumer;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!