plat_followup.go 4.6 KB

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