plat_followup.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. request.PageReq
  28. }
  29. // 添加数据
  30. type AddPlatFollowupReq struct {
  31. FollowType string `orm:"follow_type" json:"followType" v:"required#跟进类型不能为空"` // 跟进类型(10电话20邮件30拜访)
  32. FollowDate *gtime.Time `orm:"follow_date" json:"followDate" v:"required#跟进时间不能为空"` // 跟进时间
  33. FollowContent string `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"` // 跟进内容
  34. FurtherPlan string `orm:"further_plan" json:"furtherPlan" v:"required#下一步跟进计划和目标不能为空"` // 下一步跟进计划和目标
  35. TargetId int `orm:"target_id" json:"targetId" v:"required|min:1#跟进对象ID不能为空|跟进对象ID不能为空"` // 跟进对象ID
  36. TargetType string `orm:"target_type" json:"targetType" v:"required#跟进对象类型不能为空"` // 跟进对象类型(10客户,20项目,30合同,40回款)
  37. TargetName string `orm:"target_name" json:"targetName" v:"required#跟进对象不能为空"` // 跟进对象
  38. CustId int `orm:"cust_id" json:"custId"` // 关联客户
  39. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  40. ContactsId int `orm:"contacts_id" json:"contactsId" v:"required|min:1#关联联系人不能为空|关联联系人不能为空"` // 关联联系人
  41. ContactsName string `orm:"contacts_name" json:"contactsName" v:"required#联系人姓名不能为空"` // 联系人姓名
  42. Reminders string `orm:"reminders" json:"reminders"` // 提醒对象
  43. NextTime *gtime.Time `orm:"next_time" json:"nextTime"` // 下次联系时间
  44. Remark string `orm:"remark" json:"remark"` // 备注
  45. Files []*AddPlatFollowupFileReq `json:"files"` // 附件
  46. //FollowContentType string `orm:"follow_content_type" json:"followContentType" v:"required#跟进内容类型不能为空"` // 跟进内容类型
  47. //SupportName string `orm:"support_name" json:"supportName"` // 总部支持人员
  48. }
  49. // 跟进记录详情展示,且展示第一级评论数据
  50. type FollowupInfo struct {
  51. PlatFollowup
  52. Comments []*PlatFollowupComment `json:"comments"` // 评论
  53. CommentNumber int `json:"commentNumber"` // 评论数量
  54. }
  55. // 跟进记录详情展示,按日期返回前端结果
  56. type FollowupInfoResp struct {
  57. FollowDay string `json:"followDay"` // 跟进记录的当天日期
  58. FollowupList []*FollowupInfo `json:"followupList"` // 跟进记录
  59. }
  60. // 跟进记录数据
  61. type Followlist struct {
  62. FollowType string `json:"followType"`
  63. Num string `json:"num"`
  64. }
  65. // 跟进记录统计
  66. type Statistics struct {
  67. Phone int `json:"phone"` //电话
  68. Mail int `json:"mail"` //邮件
  69. PayVisit int `json:"payvisit"` //拜访
  70. Total int `json:"total"` //总计
  71. Week string `json:"week"` //总计
  72. }
  73. type WeekDate struct {
  74. WeekTh string
  75. StartTime time.Time
  76. EndTime time.Time
  77. }