| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package plat
- import (
- "time"
- "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 {
- Sell string `json:"sell"`
- FollowType string `json:"followType"`
- 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时,查询本人的数据
- CreatedName string `json:"createdName"` // 跟进对象
- 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#跟进内容不能为空"` // 跟进内容
- FurtherPlan string `orm:"further_plan" json:"furtherPlan" v:"required#下一步跟进计划和目标不能为空"` // 下一步跟进计划和目标
- Effect string `orm:"effect" json:"effect" v:"required#达成效果不能为空"` // 达成效果
- Issue string `orm:"issue" json:"issue" 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"` // 关联客户
- CustName string `orm:"cust_name" json:"custName"` // 客户名称
- ContactsId int `orm:"contacts_id" json:"contactsId"` // 关联联系人
- ContactsName string `orm:"contacts_name" json:"contactsName"` // 联系人姓名
- Reminders string `orm:"reminders" json:"reminders"` // 提醒对象
- NextTime *gtime.Time `orm:"next_time" json:"nextTime"` // 下次联系时间
- Remark string `orm:"remark" json:"remark"` // 备注
- Files []*AddPlatFollowupFileReq `json:"files"` // 附件
- //FollowContentType string `orm:"follow_content_type" json:"followContentType" v:"required#跟进内容类型不能为空"` // 跟进内容类型
- //SupportName string `orm:"support_name" json:"supportName"` // 总部支持人员
- }
- // 跟进记录详情展示,且展示第一级评论数据
- type FollowupInfo struct {
- PlatFollowup
- Comments []*PlatFollowupComment `json:"comments"` // 评论
- CommentNumber int `json:"commentNumber"` // 评论数量
- }
- // 跟进记录详情展示,按日期返回前端结果
- type FollowupInfoResp struct {
- FollowDay string `json:"followDay"` // 跟进记录的当天日期
- FollowupList []*FollowupInfo `json:"followupList"` // 跟进记录
- }
- // 跟进记录数据
- type Followlist struct {
- FollowType string `json:"followType"`
- Num string `json:"num"`
- }
- // 跟进记录统计
- type Statistics struct {
- Phone int `json:"phone"` //电话
- Mail int `json:"mail"` //邮件
- PayVisit int `json:"payvisit"` //拜访
- Total int `json:"total"` //总计
- Week string `json:"week"` //总计
- }
- type WeekDate struct {
- WeekTh string
- StartTime time.Time
- EndTime time.Time
- }
|