plat_followup.go 5.0 KB

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