plat_followup.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. TargetType string `son:"targetType"`
  17. TargetId string `json:"targetId"`
  18. ManagerId string `json:"managerId"`
  19. DaysBeforeToday int `json:"daysBeforeToday"`
  20. request.PageReq
  21. }
  22. // 添加数据
  23. type AddPlatFollowupReq struct {
  24. FollowType string `orm:"follow_type" json:"followType" v:"required#跟进类型不能为空"` // 跟进类型(10电话20邮件30拜访)
  25. FollowDate *gtime.Time `orm:"follow_date" json:"followDate" v:"required#跟进时间不能为空"` // 跟进时间
  26. FollowContent string `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"` // 跟进内容
  27. TargetId int `orm:"target_id" json:"targetId" v:"required|min:1#跟进对象ID不能为空|跟进对象ID不能为空"` // 跟进对象ID
  28. TargetType string `orm:"target_type" json:"targetType" v:"required#跟进对象类型不能为空"` // 跟进对象类型(10客户,20项目,30合同,40回款)
  29. TargetName string `orm:"target_name" json:"targetName" v:"required#跟进对象不能为空"` // 跟进对象
  30. CustId int `orm:"cust_id" json:"custId" v:"required|min:1#关联客户不能为空|关联客户不能为空"` // 关联客户
  31. CustName string `orm:"cust_name" json:"custName" v:"required#客户名称不能为空"` // 客户名称
  32. ContactsId int `orm:"contacts_id" json:"contactsId" v:"required|min:1#关联联系人不能为空|关联联系人不能为空"` // 关联联系人
  33. ContactsName string `orm:"contacts_name" json:"contactsName" v:"required#联系人姓名不能为空"` // 联系人姓名
  34. Reminders string `orm:"reminders" json:"reminders"` // 提醒对象
  35. NextTime *gtime.Time `orm:"next_time" json:"nextTime"` // 下次联系时间
  36. Remark string `orm:"remark" json:"remark"` // 备注
  37. Files []*AddPlatFollowupFileReq `json:"files"` // 附件
  38. }
  39. // 跟进记录详情展示,且展示第一级评论数据
  40. type FollowupInfo struct {
  41. PlatFollowup
  42. Comments []*PlatFollowupComment `json:"comments"` // 评论
  43. CommentNumber int `json:"commentNumber"` // 评论数量
  44. }
  45. // 跟进记录详情展示,按日期返回前端结果
  46. type FollowupInfoResp struct {
  47. FollowDay string `json:"followDay"` // 跟进记录的当天日期
  48. FollowupList []*FollowupInfo `json:"followupList"` // 跟进记录
  49. }