followup_file.go 703 B

1234567891011121314151617181920212223242526272829
  1. package plat
  2. import (
  3. "context"
  4. "dashoo.cn/common_definition/comm_def"
  5. "github.com/gogf/gf/frame/g"
  6. model "dashoo.cn/micro/app/model/plat"
  7. server "dashoo.cn/micro/app/service/plat"
  8. )
  9. type FollowUpFileHandler struct{}
  10. // GetList 获取列表
  11. // Swagger:FollowUpFile 跟进 附件列表
  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. return err
  16. }
  17. g.Log().Info("搜索值", req)
  18. total, list, err := followupFileService.GetList(req)
  19. if err != nil {
  20. return err
  21. }
  22. rsp.Data = g.Map{"list": list, "total": total}
  23. return nil
  24. }