plat_followup.go 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package plat
  5. import (
  6. "time"
  7. "dashoo.cn/micro/app/model/plat/internal"
  8. "dashoo.cn/opms_libary/request"
  9. "github.com/gogf/gf/os/gtime"
  10. )
  11. // PlatFollowup is the golang structure for table plat_followup.
  12. type PlatFollowup internal.PlatFollowup
  13. // Fill with you ideas below.
  14. // 查询
  15. type SearchPlatFollowupReq struct {
  16. Sell string `json:"sell"`
  17. FollowType string `json:"followType"`
  18. CustId string `json:"custId"`
  19. CustName string `json:"custName"`
  20. TargetType string `son:"targetType"`
  21. TargetName string `json:"targetName"` // 跟进对象
  22. TargetId string `json:"targetId"`
  23. ManagerId string `json:"managerId"`
  24. DaysBeforeToday int `json:"daysBeforeToday"`
  25. IsMyself string `json:"isMyself"` // IsMyself为1时,查询本人的数据
  26. CreatedName string `json:"createdName"` // 跟进对象
  27. DistId string `json:"distId"` // 经销商id
  28. request.PageReq
  29. }
  30. // 添加数据
  31. type AddPlatFollowupReq struct {
  32. FollowType string `orm:"follow_type" json:"followType" v:"required#跟进类型不能为空"` // 跟进类型(10电话20邮件30拜访)
  33. FollowDate *gtime.Time `orm:"follow_date" json:"followDate" v:"required#跟进时间不能为空"` // 跟进时间
  34. FollowContent string `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"` // 跟进内容
  35. FurtherPlan string `orm:"further_plan" json:"furtherPlan" v:"required#下一步跟进计划和目标不能为空"` // 下一步跟进计划和目标
  36. Effect string `orm:"effect" json:"effect" v:"required#达成效果不能为空"` // 达成效果
  37. Issue string `orm:"issue" json:"issue" v:"required#问题或困难不能为空"` // 问题或困难
  38. TargetId int `orm:"target_id" json:"targetId" v:"required|min:1#跟进对象ID不能为空|跟进对象ID不能为空"` // 跟进对象ID
  39. TargetType string `orm:"target_type" json:"targetType" v:"required#跟进对象类型不能为空"` // 跟进对象类型(10客户,20项目,30合同,40回款)
  40. TargetName string `orm:"target_name" json:"targetName" v:"required#跟进对象不能为空"` // 跟进对象
  41. CustId int `orm:"cust_id" json:"custId"` // 关联客户
  42. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  43. ContactType string `orm:"contact_type" json:"contactType"` // 联系人类型(10客户 20 渠道)
  44. ContactsId int `orm:"contacts_id" json:"contactsId"` // 关联联系人
  45. ContactsName string `orm:"contacts_name" json:"contactsName"` // 联系人姓名
  46. Reminders string `orm:"reminders" json:"reminders"` // 提醒对象
  47. NextTime *gtime.Time `orm:"next_time" json:"nextTime"` // 下次联系时间
  48. Remark string `orm:"remark" json:"remark"` // 备注
  49. DistId int `orm:"dist_id" json:"distId"` // 经销商id
  50. DistName string `orm:"dist_name" json:"distName"` // 经销商名称
  51. VisitorName string `orm:"visitor_name" json:"visitorName"` // 协访人员
  52. Files []*AddPlatFollowupFileReq `json:"files"` // 附件
  53. //FollowContentType string `orm:"follow_content_type" json:"followContentType" v:"required#跟进内容类型不能为空"` // 跟进内容类型
  54. //SupportName string `orm:"support_name" json:"supportName"` // 总部支持人员
  55. }
  56. // 跟进记录详情展示,且展示第一级评论数据
  57. type FollowupInfo struct {
  58. PlatFollowup
  59. Comments []*PlatFollowupComment `json:"comments"` // 评论
  60. CommentNumber int `json:"commentNumber"` // 评论数量
  61. }
  62. // 跟进记录详情展示,按日期返回前端结果
  63. type FollowupInfoResp struct {
  64. FollowDay string `json:"followDay"` // 跟进记录的当天日期
  65. FollowupList []*FollowupInfo `json:"followupList"` // 跟进记录
  66. }
  67. // 跟进记录数据
  68. type Followlist struct {
  69. FollowType string `json:"followType"`
  70. Num string `json:"num"`
  71. }
  72. // 跟进记录统计
  73. type Statistics struct {
  74. Phone int `json:"phone"` //电话
  75. Mail int `json:"mail"` //邮件
  76. PayVisit int `json:"payvisit"` //拜访
  77. Total int `json:"total"` //总计
  78. Week string `json:"week"` //总计
  79. }
  80. type WeekDate struct {
  81. WeekTh string
  82. StartTime time.Time
  83. EndTime time.Time
  84. }