Commit 1c8c8da5 authored by yanzg's avatar yanzg

接口文档的支持

parent 602a93df
package com.yanzuoguang.util.vo;
import java.util.List;
/**
* 查询时分页请求接口
*
* @author 颜佐光
*/
public interface IPageSizeData<T> extends PageSizeReq {
int getPageTotal();
void setPageTotal(int pageTotal);
List<T> getList();
void setList(List<T> list);
}
package com.yanzuoguang.util.vo; package com.yanzuoguang.util.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -11,7 +10,7 @@ import java.util.List; ...@@ -11,7 +10,7 @@ import java.util.List;
* *
* @author 颜佐光 * @author 颜佐光
*/ */
public class PageSizeData<T extends Object> extends PageSizeReqVo { public class PageSizeData<T extends Object> extends PageSizeReqVo implements IPageSizeData<T> {
private static final long serialVersionUID = -8424119556188973873L; private static final long serialVersionUID = -8424119556188973873L;
/** /**
...@@ -26,18 +25,22 @@ public class PageSizeData<T extends Object> extends PageSizeReqVo { ...@@ -26,18 +25,22 @@ public class PageSizeData<T extends Object> extends PageSizeReqVo {
@ApiModelProperty(value = "当前页的数据", required = true) @ApiModelProperty(value = "当前页的数据", required = true)
private List<T> list = new ArrayList<T>(); private List<T> list = new ArrayList<T>();
@Override
public int getPageTotal() { public int getPageTotal() {
return pageTotal; return pageTotal;
} }
@Override
public void setPageTotal(int pageTotal) { public void setPageTotal(int pageTotal) {
this.pageTotal = pageTotal; this.pageTotal = pageTotal;
} }
@Override
public List<T> getList() { public List<T> getList() {
return list; return list;
} }
@Override
public void setList(List<T> list) { public void setList(List<T> list) {
this.list = list; this.list = list;
} }
......
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