plat_followup.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package plat
  5. import (
  6. "dashoo.cn/micro/app/model/plat/internal"
  7. "dashoo.cn/opms_libary/request"
  8. "github.com/gogf/gf/os/gtime"
  9. )
  10. // PlatFollowup is the golang structure for table plat_followup.
  11. type PlatFollowup internal.PlatFollowup
  12. // Fill with you ideas below.
  13. // 查询
  14. type SearchPlatFollowupReq struct {
  15. CustId string `json:"custId"`
  16. CustName string `json:"custName"`
  17. TargetType string `son:"targetType"`
  18. TargetName string `json:"targetName"` // 跟进对象
  19. TargetId string `json:"targetId"`
  20. ManagerId string `json:"managerId"`
  21. DaysBeforeToday int `json:"daysBeforeToday"`
  22. IsMyself string `json:"isMyself"` // IsMyself为1时,查询本人的数据
  23. request.PageReq
  24. }
  25. // 添加数据
  26. type AddPlatFollowupReq struct {
  27. FollowType string `orm:"follow_type" json:"followType" v:"required#跟进类型不能为空"` // 跟进类型(10电话20邮件30拜访)
  28. FollowDate *gtime.Time `orm:"follow_date" json:"followDate" v:"required#跟进时间不能为空"` // 跟进时间
  29. FollowContent string `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"` // 跟进内容
  30. TargetId int `orm:"target_id" json:"targetId" v:"required|min:1#跟进对象ID不能为空|跟进对象ID不能为空"` // 跟进对象ID
  31. TargetType string `orm:"target_type" json:"targetType" v:"required#跟进对象类型不能为空"` // 跟进对象类型(10客户,20项目,30合同,40回款)
  32. TargetName string `orm:"target_name" json:"targetName" v:"required#跟进对象不能为空"` // 跟进对象
  33. CustId int `orm:"cust_id" json:"custId" v:"required|min:1#关联客户不能为空|关联客户不能为空"` // 关联客户
  34. CustName string `orm:"cust_name" json:"custName" v:"required#客户名称不能为空"` // 客户名称
  35. ContactsId int `orm:"contacts_id" json:"contactsId" v:"required|min:1#关联联系人不能为空|关联联系人不能为空"` // 关联联系人
  36. ContactsName string `orm:"contacts_name" json:"contactsName" v:"required#联系人姓名不能为空"` // 联系人姓名
  37. Reminders string `orm:"reminders" json:"reminders"` // 提醒对象
  38. NextTime *gtime.Time `orm:"next_time" json:"nextTime"` // 下次联系时间
  39. Remark string `orm:"remark" json:"remark"` // 备注
  40. Files []*AddPlatFollowupFileReq `json:"files"` // 附件
  41. }
  42. // 跟进记录详情展示,且展示第一级评论数据
  43. type FollowupInfo struct {
  44. PlatFollowup
  45. Comments []*PlatFollowupComment `json:"comments"` // 评论
  46. CommentNumber int `json:"commentNumber"` // 评论数量
  47. }
  48. // 跟进记录详情展示,按日期返回前端结果
  49. type FollowupInfoResp struct {
  50. FollowDay string `json:"followDay"` // 跟进记录的当天日期
  51. FollowupList []*FollowupInfo `json:"followupList"` // 跟进记录
  52. }