| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- // ==========================================================================
- // 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 {
- CustCode string `json:"custCode"`
- CustName string `json:"custName"`
- IndusTry string `json:"indusTry"`
- Level string `json:"level"`
- 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" ` // 助计名
- //IndusTry string `p:"indusTry" json:"indusTry" v:"required#客户行业不能为空" ` //客户行业
- //Level string `p:"level" json:"level" v:"required#客户级别不能为空" `
- CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区
- CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址
- FollowUpDate *gtime.Time `p:"followUpDate" json:"followUpDate" ` //跟进时间
- Remark string
- //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)
- FollowUpDate *gtime.Time `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间
- IndusTry string `json:"indusTry"`
- Level string `json:"level"`
- }
- //转移客户参数
- 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
- }
|