Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 3 years ago
parent
commit
742b46bb27
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/search.go

+ 2
- 0
routers/search.go View File

@@ -443,6 +443,8 @@ func searchIssue(ctx *context.Context, TableName string, Key string, Page int, P
boolQ.Must(isIssueQuery)
res, err := client.Search(TableName).Query(boolQ).Sort(SortBy, ascending).From((Page - 1) * PageSize).Size(PageSize).Do(ctx.Req.Context())
if err == nil {
searchJson, _ := json.Marshal(res)
log.Info("searchJson=" + string(searchJson))
result := makeIssueResult(res, Key)
ctx.JSON(200, result)
} else {


Loading…
Cancel
Save