cust_customer_contact.go 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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" v:"required|in:10,20#性别不能为空|填写错误"` // 性别(10男20女)
  18. Telephone string `p:"telephone" json:"telephone" v:"phone#手机号格式错误"` // 电话
  19. Wechat string `p:"wechat" json:"wechat"` // 微信
  20. Email string `p:"email" json:"email" v:"email#邮箱格式错误"` // 邮箱
  21. Dept string `p:"dept" json:"dept"` // 部门
  22. Postion string `p:"postion" json:"postion" v:"required#岗位不能为空" ` // 职位
  23. OfficeLocation string `p:"officeLocation" json:"officeLocation"` // 办公地点
  24. IsDecision string `p:"isDecision" json:"isDecision" v:"required|in:10,20#是否关键决策人不能为空|填写错误"` // 关键决策人(10是20否)
  25. Remark string `p:"remark" json:"remark"` // 备注
  26. }
  27. // 修改联系人
  28. type UpdateCustCustomerContactSeq struct {
  29. Id int ` json:"id" v:"required#ID不能为空" `
  30. CustId int ` json:"custId" v:"required#CustID不能为空" `
  31. *CustCustomerContact
  32. }
  33. // 客户联系人信息
  34. type ContactSeq struct {
  35. CustId int `p:"custId" json:"custId" v:"required#custId不能为空" `
  36. CuctName string `p:"cuctName" json:"cuctName" `
  37. IsDecision string `p:"isDecision" json:"isDecision"` // 关键决策人(10是20否)
  38. request.PageReq
  39. }
  40. //详情返回字段
  41. type CustCustomerContactInfo struct {
  42. Id int `orm:"id,primary" json:"id"` // 主键
  43. CustId int `orm:"cust_id" json:"custId" ` // 关联客户
  44. CuctName string `orm:"cuct_name" json:"cuctName" ` // 姓名
  45. CuctGender string `orm:"cuct_gender" json:"cuctGender"` // 性别(10男20女)
  46. Telephone string `orm:"telephone" json:"telephone"` // 电话
  47. Wechat string `orm:"wechat" json:"wechat"` // 微信
  48. Email string `orm:"email" json:"email"` // 邮箱
  49. Dept string `orm:"dept" json:"dept"` // 部门
  50. Postion string `orm:"postion" json:"postion"` // 职位
  51. IsDecision string `orm:"is_decision" json:"isDecision"` // 关键决策人(10是20否)
  52. OfficeLocation string `orm:"office_location" json:"officeLocation"` // 办公地点
  53. Remark string `orm:"remark" json:"remark"` // 备注
  54. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  55. CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
  56. }