proj_business_contact.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/proj/internal"
  7. "dashoo.cn/opms_libary/request"
  8. )
  9. // ProjBusinessContact is the golang structure for table proj_business_contact.
  10. type ProjBusinessContact internal.ProjBusinessContact
  11. // Fill with you ideas below.
  12. type BusinessContact struct {
  13. Id int `json:"id"` // 主键
  14. BusId int `json:"busId"` // 关联项目
  15. ContactId int `json:"contactId"` // 联系人主键
  16. ContactType string `json:"contactType"` // 联系人类型(10客户联系人 20 渠道联系人)
  17. CustId int `json:"custId" ` // 关联客户
  18. CuctName string `json:"cuctName" ` // 姓名
  19. CuctGender string `json:"cuctGender"` // 性别(10男20女)
  20. Telephone string `json:"telephone"` // 电话
  21. Wechat string `json:"wechat"` // 微信
  22. Email string `json:"email"` // 邮箱
  23. Dept string `json:"dept"` // 部门
  24. Postion string `json:"postion"` // 职位
  25. OfficeLocation string `json:"officeLocation"` // 办公地点
  26. IsDecision string `json:"isDecision"` // 关键决策人(10是20否)
  27. }
  28. // BusinessContactSearchReq 获取项目关联联系人信息
  29. type BusinessContactSearchReq struct {
  30. BusId int64 `json:"busId" v:"required|min:1#|关联项目不能为空"` // 主键
  31. CuctId int `json:"cuctId"` // 客户联系人
  32. CuctName string `json:"cuctName"` // 客户联系人姓名
  33. request.PageReq
  34. }
  35. type BusinessContactReq struct {
  36. BusId int `json:"busId" v:"required|min:1#|关联项目不能为空"` // 关联项目
  37. ContactIds []int `json:"contactIds" v:"required#联系人不能为空"` // 联系人主键
  38. ContactType string `json:"contactType" v:"required#联系人类型不能为空"` // 联系人类型
  39. Remark string `json:"remark"` // 备注
  40. }
  41. type DeleteBusinessContactReq struct {
  42. BusId int64 `json:"busId" v:"required|min:1#|关联项目不能为空"` // 关联项目
  43. ContactIds []int `json:"contactIds" v:"required#联系人不能为空"` // 联系人主键
  44. }