| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package plat
- import (
- "dashoo.cn/micro/app/model/plat/internal"
- "dashoo.cn/opms_libary/request"
- "github.com/gogf/gf/os/gtime"
- )
- // PlatFollowup is the golang structure for table plat_followup.
- type PlatFollowup internal.PlatFollowup
- // Fill with you ideas below.
- // 查询
- type SearchPlatFollowupReq struct {
- CustId string `json:"custId"`
- CustName string `json:"custName"`
- TargetType string `son:"targetType"`
- TargetName string `json:"targetName"` // 跟进对象
- TargetId string `json:"targetId"`
- ManagerId string `json:"managerId"`
- DaysBeforeToday int `json:"daysBeforeToday"`
- IsMyself string `json:"isMyself"` // IsMyself为1时,查询本人的数据
- request.PageReq
- }
- // 添加数据
- type AddPlatFollowupReq struct {
- FollowType string `orm:"follow_type" json:"followType" v:"required#跟进类型不能为空"` // 跟进类型(10电话20邮件30拜访)
- FollowDate *gtime.Time `orm:"follow_date" json:"followDate" v:"required#跟进时间不能为空"` // 跟进时间
- FollowContent string `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"` // 跟进内容
- TargetId int `orm:"target_id" json:"targetId" v:"required|min:1#跟进对象ID不能为空|跟进对象ID不能为空"` // 跟进对象ID
- TargetType string `orm:"target_type" json:"targetType" v:"required#跟进对象类型不能为空"` // 跟进对象类型(10客户,20项目,30合同,40回款)
- TargetName string `orm:"target_name" json:"targetName" v:"required#跟进对象不能为空"` // 跟进对象
- CustId int `orm:"cust_id" json:"custId" v:"required|min:1#关联客户不能为空|关联客户不能为空"` // 关联客户
- CustName string `orm:"cust_name" json:"custName" v:"required#客户名称不能为空"` // 客户名称
- ContactsId int `orm:"contacts_id" json:"contactsId" v:"required|min:1#关联联系人不能为空|关联联系人不能为空"` // 关联联系人
- ContactsName string `orm:"contacts_name" json:"contactsName" v:"required#联系人姓名不能为空"` // 联系人姓名
- Reminders string `orm:"reminders" json:"reminders"` // 提醒对象
- NextTime *gtime.Time `orm:"next_time" json:"nextTime"` // 下次联系时间
- Remark string `orm:"remark" json:"remark"` // 备注
- Files []*AddPlatFollowupFileReq `json:"files"` // 附件
- }
- // 跟进记录详情展示,且展示第一级评论数据
- type FollowupInfo struct {
- PlatFollowup
- Comments []*PlatFollowupComment `json:"comments"` // 评论
- CommentNumber int `json:"commentNumber"` // 评论数量
- }
- // 跟进记录详情展示,按日期返回前端结果
- type FollowupInfoResp struct {
- FollowDay string `json:"followDay"` // 跟进记录的当天日期
- FollowupList []*FollowupInfo `json:"followupList"` // 跟进记录
- }
|