cust_customer_contact.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package cust
  5. import (
  6. "dashoo.cn/opms_libary/request"
  7. "github.com/gogf/gf/os/gtime"
  8. "dashoo.cn/micro/app/model/cust/internal"
  9. )
  10. // CustCustomerContact is the golang structure for table cust_customer_contact.
  11. type CustCustomerContact internal.CustCustomerContact
  12. // Fill with you ideas below.
  13. //添加联系人参数
  14. type CustCustomerContactSeq struct {
  15. CustId int ` p:"custId" json:"custId" v:"required#客户ID不能为空" ` // 关联客户
  16. CuctName string ` p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"` // 姓名
  17. CuctGender string ` p:"cuctGender" json:"cuctGender"` // 性别(10男20女)
  18. Postion string ` p:"postion" json:"postion" ` // 职位
  19. Telephone string ` p:"telephone" json:"telephone" v:"required|phone#手机号不能为空|手机号格式错误"` // 电话
  20. Wechat string ` p:"wechat" json:"wechat"` // 微信
  21. Email string ` p:"email" json:"email" v:"email#邮箱格式错误"` // 邮箱
  22. Remark string ` p:"remark" json:"remark"` // 备注
  23. Policy int ` p:"policy" json:"policy"` //
  24. }
  25. //修改联系人
  26. type UpdateCustCustomerContactSeq struct {
  27. Id int ` json:"id" v:"required#ID不能为空" `
  28. CustId int ` json:"custId" v:"required#CustID不能为空" `
  29. *CustCustomerContact
  30. }
  31. //客户联系人信息
  32. type ContactSeq struct {
  33. CustId int ` p:"custId" json:"custId" v:"required#custId不能为空" `
  34. request.PageReq
  35. }
  36. //详情返回字段
  37. type CustCustomerContactInfo struct {
  38. Id int `orm:"id,primary" json:"id"` // 主键
  39. CustId int `orm:"cust_id" json:"custId" ` // 关联客户
  40. CuctName string `orm:"cuct_name" json:"cuctName" ` // 姓名
  41. CuctGender string `orm:"cuct_gender" json:"cuctGender"` // 性别(10男20女)
  42. Postion string `orm:"postion" json:"postion"` // 职位
  43. Telephone string `orm:"telephone" json:"telephone"` // 电话
  44. Wechat string `orm:"wechat" json:"wechat"` // 微信
  45. Email string `orm:"email" json:"email"` // 邮箱
  46. Policy int ` orm:"policy" json:"policy"` //是否决策
  47. Remark string `orm:"remark" json:"remark"` // 备注
  48. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  49. CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
  50. }