cust_customer.go 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. // CustCustomer is the golang structure for table cust_customer.
  11. type CustCustomer internal.CustCustomer
  12. // Fill with you ideas below.
  13. //列表搜索参数
  14. type CustCustomerSearchReq struct {
  15. CustCode string `json:"custCode"`
  16. CustName string `json:"custName"`
  17. IndusTry string `json:"indusTry"`
  18. Level string `json:"level"`
  19. request.PageReq
  20. }
  21. // 添加客户信息表
  22. type AddCustCustomerReq struct {
  23. Cust *Customer
  24. Info *Information
  25. }
  26. // 单表添加客户信息表
  27. type Customer struct {
  28. CustName string `p:"custName" json:"custName" v:"required#客户名称不能为空"`
  29. AbbrName string `p:"abbrName" json:"abbrName" ` // 助计名
  30. //IndusTry string `p:"indusTry" json:"indusTry" v:"required#客户行业不能为空" ` //客户行业
  31. //Level string `p:"level" json:"level" v:"required#客户级别不能为空" `
  32. CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区
  33. CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址
  34. FollowUpDate *gtime.Time `p:"followUpDate" json:"followUpDate" ` //跟进时间
  35. Remark string
  36. //SalesName string `p:"salesName" json:"salesName" ` //
  37. //SalesId string `p:"salesId" json:"salesId" ` //
  38. }
  39. //客户联系人信息
  40. type Information struct {
  41. CuctName string `p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"`
  42. TelePhone string `p:"telePhone" json:"telePhone" v:"required|phone#手机号不能为空|手机号格式错误" orm:"telephone"`
  43. CuctGender string `p:"cuctGender" json:"cuctGender" ` // 尊称 性别
  44. Postion string `p:"postion" json:"postion" ` // 职位
  45. Email string `p:"email" json:"email" v:"email#邮箱格式错误" orm:"email" ` // 邮箱
  46. Remark string `p:"remark" json:"remark" ` // 备注
  47. }
  48. //返回信息
  49. type CustList struct {
  50. Id int `orm:"id,primary" json:"id"` // 主键
  51. CustCode string `orm:"cust_code" json:"custCode"` // 客户编号
  52. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  53. AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名
  54. CustLocation string `orm:"cust_location" json:"custLocation"` // 所在地区
  55. CustAddress string `orm:"cust_address" json:"custAddress"` // 详细地址
  56. CustStatus string `orm:"cust_status" json:"custStatus"` // 客户状态(10正常20)
  57. FollowUpDate *gtime.Time `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间
  58. IndusTry string `json:"indusTry"`
  59. Level string `json:"level"`
  60. }
  61. //转移客户参数
  62. type CustSalesReq struct {
  63. Ids []int64 `json:"ids,omitempty"`
  64. SalesIds int64 `json:"salesids,omitempty"`
  65. Remark string `json:"remark,omitempty"`
  66. }
  67. //分配客户参数
  68. type DistriCustomer struct {
  69. Ids []int64 `json:"ids,omitempty"` //客户id
  70. SalesId int64 `json:"salesid,omitempty"` //分配到销售人员的id
  71. }