| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package cust
- import (
- "dashoo.cn/opms_libary/request"
- "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 {
- *CustCustomer
- CuctName string `p:"cuctName" json:"cuctName"`
- TelePhone string `p:"telePhone" json:"telePhone"`
- }
- //转移客户参数
- 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
- }
|