// ========================================================================== // 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 { KeyWords string `json:"custCode"` CustName string `json:"custName"` CuctName string `json:"cuctName"` SalesName string `json:"salesName"` Telephone string `json:"telePhone"` CustStatus string `json:"custStatus"` //客户状态 request.PageReq } // 添加客户信息表 type AddCustCustomerReq struct { Cust *Customer Info *Information } type Customer 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" ` // 详细地址 SalesName string `p:"salesName" json:"salesName" ` // SalesId string `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) DeptId int `orm:"dept_id" json:"deptId"` // 所属部门ID DeptName string `orm:"dept_name" json:"deptName"` // 所属部门 SalesId int `orm:"sales_id" json:"salesId"` // 所属销售ID FollowUpDate *gtime.Time `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间 Contact *CustCustomerContact `orm:"with:cust_id=id"` CuctName string `p:"cuctName" json:"cuctName"` TelePhone string `p:"telePhone" json:"telePhone"` DistName string `p:"distName" json:"distName"` DistLevel string `p:"distLevel" json:"distLevel"` //商机评级 Product string `p:"product" json:"product"` //产品样品 } //转移客户参数 type CustSalesReq struct { Ids []int64 `json:"ids,omitempty"` SalesIds int64 `json:"salesids,omitempty"` Remark string `json:"remark,omitempty"` } //分配客户参数 type DistriCustomer struct { Ids []int64 `json:"ids,omitempty"` //客户id SalesId int64 `json:"salesid,omitempty"` //分配到销售人员的id }