Commit 0b6ef8a5 authored by yanzg's avatar yanzg

接口文档的支持

parent 51583ee4
package com.yanzuoguang.util.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
......@@ -47,7 +46,7 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq {
* @return 返回记录开始的编号
*/
@Override
@ApiModelProperty(value = "当前页的第一条序号", required = true, example = "1")
@ApiModelProperty(value = "当前页的第一条序号", required = true, example = "1", hidden = true)
public int getPageStart() {
int pageIndex = this.pageIndex > 0 ? this.pageIndex : 1;
return (pageIndex - 1) * this.pageSize;
......@@ -59,7 +58,7 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq {
* @return 返回记录结束的编号
*/
@Override
@ApiModelProperty(value = "当前页的最后一条序号", required = true, example = "20")
@ApiModelProperty(value = "当前页的最后一条序号", required = true, example = "20", hidden = true)
public int getPageEnd() {
int pageIndex = this.pageIndex > 0 ? this.pageIndex : 1;
return pageIndex * this.pageSize;
......
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