更新历史数据接口文档

This commit is contained in:
fanghongchao
2018-12-03 15:21:49 +08:00
parent 50ac2dce85
commit 610dbbb8a5
7 changed files with 241 additions and 201 deletions
@@ -1,31 +1,27 @@
package com.gzzn.omms.adminapi.elasticsearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Map;
@ApiModel(value="ES文本分页记录",description="ELK中log的分页记录")
public class EsPage {
/**
* 当前页
*/
@ApiModelProperty(value="当前页,默认从1开始",example="1")
private int currentPage;
/**
* 每页显示多少条
*/
@ApiModelProperty(value="每页显示多少条,默认10",example="10")
private int pageSize;
/**
* 总记录数
*/
@ApiModelProperty(value="总记录数",example="1024")
private int recordCount;
/**
* 本页的数据列表
*/
@ApiModelProperty(value="本页的数据结果列表,根据实际业务而定(查询es什么日志则返回对应的数据)",example="")
private List<Map<String, Object>> recordList;
/**
* 总页数
*/
@ApiModelProperty(value="总页数",example="1")
private int pageCount;
/**
* 页码列表的开始索引(包含)
@@ -116,20 +112,4 @@ public class EsPage {
public void setPageCount(int pageCount) {
this.pageCount = pageCount;
}
public int getBeginPageIndex() {
return beginPageIndex;
}
public void setBeginPageIndex(int beginPageIndex) {
this.beginPageIndex = beginPageIndex;
}
public int getEndPageIndex() {
return endPageIndex;
}
public void setEndPageIndex(int endPageIndex) {
this.endPageIndex = endPageIndex;
}
}