@ -7,6 +7,8 @@ type Request {
type EsQueryName {
Name string `json:"name"`
Page int32 `json:"page"`
Size int32 `json:"size"`
}
// 通用api返回参数
@ -40,7 +40,7 @@ func (l *EsPressureTestLogic) EsPressureTest(req *types.EsQueryName) (resp *type
`
esQueryStr := fmt.Sprintf(esQuery, req.Name)
doc, err := es.EsServiceApp.EsSearchDocWithStr(l.ctx, esQueryStr, 0, 100)
doc, err := es.EsServiceApp.EsSearchDocWithStr(l.ctx, esQueryStr, int(req.Page), int(req.Size))
if err != nil {
return nil, err
@ -7,6 +7,8 @@ type Request struct {
type EsQueryName struct {
type Response struct {