plat_followup.go 3.6 KB

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