followup_file.go 787 B

123456789101112131415161718192021222324252627282930
  1. package plat
  2. import (
  3. "context"
  4. "dashoo.cn/common_definition/comm_def"
  5. model "dashoo.cn/micro/app/model/plat"
  6. server "dashoo.cn/micro/app/service/plat"
  7. "dashoo.cn/opms_libary/myerrors"
  8. "github.com/gogf/gf/frame/g"
  9. )
  10. type FollowUpFileHandler struct{}
  11. // GetList 获取列表
  12. func (h *FollowUpFileHandler) GetList(ctx context.Context, req *model.SearchPlatFollowupFileReq, rsp *comm_def.CommonMsg) error {
  13. followupFileService, err := server.NewFollowupFileService(ctx)
  14. if err != nil {
  15. g.Log().Error(err)
  16. return err
  17. }
  18. g.Log().Info("搜索值", req)
  19. total, list, err := followupFileService.GetList(req)
  20. _, err, rsp.Code, rsp.Msg = myerrors.CheckError(err)
  21. if err != nil {
  22. g.Log().Error(err)
  23. return err
  24. }
  25. rsp.Data = g.Map{"list": list, "total": total}
  26. return nil
  27. }