package plat import ( "context" "dashoo.cn/common_definition/comm_def" model "dashoo.cn/micro/app/model/plat" server "dashoo.cn/micro/app/service/plat" "dashoo.cn/opms_libary/myerrors" "github.com/gogf/gf/frame/g" ) type FollowUpFileHandler struct{} // GetList 获取列表 func (h *FollowUpFileHandler) GetList(ctx context.Context, req *model.SearchPlatFollowupFileReq, rsp *comm_def.CommonMsg) error { followupFileService, err := server.NewFollowupFileService(ctx) if err != nil { g.Log().Error(err) return err } g.Log().Info("搜索值", req) total, list, err := followupFileService.GetList(req) _, err, rsp.Code, rsp.Msg = myerrors.CheckError(err) if err != nil { g.Log().Error(err) return err } rsp.Data = g.Map{"list": list, "total": total} return nil }