controllers/worker_controller.go
@@ -101,7 +101,7 @@ util.ResponseFormat(c, code.RequestParamError, "参数解析失败,数据类型错误") return } workers, total, err := models.NewWorkerSearch().SetPage(params.Page, params.PageSize).SetOrder("updated_at desc").Find() workers, total, err := models.NewWorkerSearch().SetPage(params.Page, params.PageSize).SetKeyword(params.Keyword).SetOrder("updated_at desc").Find() if err != nil { util.ResponseFormat(c, code.RequestParamError, "查询失败") return