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;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
......@@ -11,7 +10,7 @@ import java.util.List;
*
* @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;
/**
......@@ -26,18 +25,22 @@ public class PageSizeData<T extends Object> extends PageSizeReqVo {
@ApiModelProperty(value = "当前页的数据", required = true)
private List<T> list = new ArrayList<T>();
@Override
public int getPageTotal() {
return pageTotal;
}
@Override
public void setPageTotal(int pageTotal) {
this.pageTotal = pageTotal;
}
@Override
public List<T> getList() {
return list;
}
@Override
public void setList(List<T> 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