// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package cust import ( "dashoo.cn/opms_libary/request" "github.com/gogf/gf/os/gtime" "dashoo.cn/micro/app/model/cust/internal" ) // CustCustomer is the golang structure for table cust_customer. type CustCustomer internal.CustCustomer // Fill with you ideas below. //列表搜索参数 type CustCustomerSearchReq struct { IsPublic bool `json:"isPublic,omitempty"` //区分是否是公海用户列表 CustCode string `json:"custCode"` CustName string `json:"custName"` CustIndustry string `json:"custIndustry"` CustLevel string `json:"custLevel"` TargetType string `json:"targetType,omitempty"` FollowUpDate string `json:"followUpDate,omitempty"` Remark string `json:"remark"` request.PageReq } //导出参数 type CustCustomerExport struct { CustCustomerSearchReq Columns []string `json:"columns"` // 导出列 } //导出字节流 type CustExport struct { Content []byte `json:"content"` // 导出数据流 } // 添加客户信息表 type AddCustCustomerReq struct { Cust *CustomerAddSeq Info *Information } // 单表添加客户信息表 type CustomerAddSeq struct { CustName string `p:"custName" json:"custName" v:"required#客户名称不能为空"` AbbrName string `p:"abbrName" json:"abbrName" ` // 助计名 CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区 CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址 FollowUpDate *gtime.Time `p:"followUpDate" json:"followUpDate" ` //跟进时间 CustIndustry string `p:"custIndustry" json:"custIndustry" v:"required#客户行业不能为空"` //客户行业 CustLevel string `p:"custLevel" json:"custLevel" v:"required#客户级别不能为空"` //客户级别 CustSource string `p:"custSource" json:"source" v:"required#客户来源不能为空"` //客户级别 CustDistCode int `p:"custDistCode" json:"custDistCode" v:"required#省份不能为空" ` // 省份Id Remark string `p:"remark" json:"remark""` //备注 SalesName string `p:"salesName" json:"salesName" ` // SalesId int `p:"salesId" json:"salesId" ` // } //客户联系人信息 type Information struct { CuctName string `p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"` TelePhone string `p:"telePhone" json:"telePhone" v:"required|phone#手机号不能为空|手机号格式错误" orm:"telephone"` CuctGender string `p:"cuctGender" json:"cuctGender" ` // 尊称 性别 Postion string `p:"postion" json:"postion" ` // 职位 Email string `p:"email" json:"email" v:"email#邮箱格式错误" orm:"email" ` // 邮箱 Remark string `p:"remark" json:"remark" ` // 备注 } //返回信息 type CustList struct { Id int `orm:"id,primary" json:"id"` // 主键 CustCode string `orm:"cust_code" json:"custCode"` // 客户编号 CustName string `orm:"cust_name" json:"custName"` // 客户名称 AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名 CustLocation string `orm:"cust_location" json:"custLocation"` // 所在地区 CustAddress string `orm:"cust_address" json:"custAddress"` // 详细地址 CustStatus string `orm:"cust_status" json:"custStatus"` // 客户状态(10正常20) FollowUpDate string `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间 CustIndustry string `orm:"cust_industry" json:"custIndustry"` // 客户行业 CustLevel string `orm:"cust_level" json:"custLevel"` // 客户级别(10 重点客户 20 普通客户 30非优客户) CustSource string `orm:"cust_soucrce" json:"source"` // 客户来源 CreatedName string `orm:"created_name" json:"createdName"` // 创建人 CreatedTime string `orm:"created_time" json:"createdTime"` // 创建时间 SalesId int `orm:"sales_id" json:"salesId"` // SalesName string `orm:"sales_name" json:"salesName"` // Remark string `orm:"remark" json:"remark"` //Follow *Follow `json:"follow"` } //跟进摘要 type Follow struct { FollowCount int `json:"followCount"` // 跟进次数 NotFollowDay int `json:"notFollowDay"` // 未跟进天数 Business int `json:"business"` // 商机数量 BusinessTotal float64 `json:"businessTotal"` // 商机总额 DealCount int `json "dealCotal"` // 成交次数 DealTotal float64 `json "dealTotal"` // 成交总额 PaymentTotal float64 `json "paymentTotal"` // 回款总额 NotPaymentTotal float64 `json "notPaymentTotal"` // 未回款总额 DrawTotal float64 `json "drawTotal"` // 开票总额 } //转移客户参数 type CustSalesReq struct { Ids []int64 `json:"ids,omitempty"` SalesIds int64 `json:"salesIds,omitempty"` SalesName string `json:"salesName,omitempty"` Remark string `json:"remark,omitempty"` Receive string `json:"receive,omitempty"` //有值领取 无值分配 } //分配 领取 转移 客户参数 type DistriCustomer struct { Ids []int64 `json:"ids,omitempty"` //客户id SalesId int64 `json:"salesId,omitempty"` //分配到销售人员的id SalesName string `json:"salesName,omitempty"` //分配到销售人员的姓名 Remark string `json:"remark,omitempty"` Receive string `json:"receive,omitempty"` //有值领取 无值分配 } //删除客户参数 type DelCustomer struct { Id int `json:"id"` //客户id } type DelCustomerContact struct { Id int `json:"id"` //联系人id CustId int `json:custId` //客户Id } //合并客户参数 type MergecustomerRep struct { Id int `json:"id"` //目标Id *CustomerAddSeq //*CustCustomerContactSeq *AddCustomerBelong ChooseId []int64 `json:"chooseId,omitempty"` //被合并的客户id } //修改客户 type UpdateCustomer struct { Id int `json:"id,omitempty"` //客户id *CustomerAddSeq } //移入公海 type MoveToPubicRep struct { Ids []int64 `json:"ids,omitempty"` Remark string `json:"remark,omitempty"` }