| 1234567891011121314151617181920212223242526272829 |
- package plat
- import (
- "context"
- "dashoo.cn/common_definition/comm_def"
- "github.com/gogf/gf/frame/g"
- model "dashoo.cn/micro/app/model/plat"
- server "dashoo.cn/micro/app/service/plat"
- )
- type FollowUpFileHandler struct{}
- // GetList 获取列表
- // Swagger:FollowUpFile 跟进 附件列表
- func (h *FollowUpFileHandler) GetList(ctx context.Context, req *model.SearchPlatFollowupFileReq, rsp *comm_def.CommonMsg) error {
- followupFileService, err := server.NewFollowupFileService(ctx)
- if err != nil {
- return err
- }
- g.Log().Info("搜索值", req)
- total, list, err := followupFileService.GetList(req)
- if err != nil {
- return err
- }
- rsp.Data = g.Map{"list": list, "total": total}
- return nil
- }
|