| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package cust
- import (
- "github.com/gogf/gf/os/gtime"
- "dashoo.cn/micro/app/model/cust/internal"
- )
- // CustCustomerContact is the golang structure for table cust_customer_contact.
- type CustCustomerContact internal.CustCustomerContact
- // Fill with you ideas below.
- //添加联系人参数
- type CustCustomerContactSeq struct {
- CustId int ` p:"custId" json:"custId" v:"required#客户ID不能为空" ` // 关联客户
- CuctName string ` p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"` // 姓名
- CuctGender string ` p:"cuctGender" json:"cuctGender"` // 性别(10男20女)
- Postion string ` p:"postion" json:"postion" v:"required#职位不能为空" ` // 职位
- Telephone string ` p:"telephone" json:"telephone" v:"required|phone#手机号不能为空|手机号格式错误"` // 电话
- Wechat string ` p:"wechat" json:"wechat"` // 微信
- Email string ` p:"email" json:"email" v:"email#邮箱格式错误"` // 邮箱
- Remark string ` p:"remark" json:"remark"` // 备注
- Policy int ` p:"policy" json:"policy"` //
- }
- //修改联系人
- type UpdateCustCustomerContactSeq struct {
- Id int ` json:"id" v:"required#ID不能为空" `
- CustId int ` json:"custId" v:"required#CustID不能为空" `
- *CustCustomerContact
- }
- //客户联系人信息
- type ContactSeq struct {
- CustId int ` p:"custId" json:"custId" v:"required#custId不能为空" `
- }
- //详情返回字段
- type CustCustomerContactInfo struct {
- Id int `orm:"id,primary" json:"id"` // 主键
- CustId int `orm:"cust_id" json:"custId" ` // 关联客户
- CuctName string `orm:"cuct_name" json:"cuctName" ` // 姓名
- CuctGender string `orm:"cuct_gender" json:"cuctGender"` // 性别(10男20女)
- Postion string `orm:"postion" json:"postion"` // 职位
- Telephone string `orm:"telephone" json:"telephone"` // 电话
- Wechat string `orm:"wechat" json:"wechat"` // 微信
- Email string `orm:"email" json:"email"` // 邮箱
- Policy int ` orm:"policy" json:"policy"` //是否决策
- Remark string `orm:"remark" json:"remark"` // 备注
- CreatedName string `orm:"created_name" json:"createdName"` // 创建人
- CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
- }
|