cust_customer.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. //CustCustomerSearchReq 列表搜索参数
  14. type CustCustomerSearchReq struct {
  15. IsPublic bool `json:"isPublic,omitempty"` //区分是否是公海用户列表
  16. CustCode string `json:"custCode"`
  17. CustName string `json:"custName"`
  18. CustIndustry string `json:"custIndustry"`
  19. CustLevel string `json:"custLevel"`
  20. TargetType string `json:"targetType,omitempty"`
  21. FollowUpDate string `json:"followUpDate,omitempty"`
  22. Remark string `json:"remark"`
  23. request.PageReq
  24. }
  25. //CustCustomerExport 导出参数
  26. type CustCustomerExport struct {
  27. CustCustomerSearchReq
  28. Columns []string `json:"columns"` // 导出列
  29. }
  30. //导出字节流
  31. type CustExport struct {
  32. Content []byte `json:"content"` // 导出数据流
  33. }
  34. //CustomerAddSeq 单表添加客户信息表
  35. type CustomerAddSeq struct {
  36. CustName string `p:"custName" json:"custName" v:"required#客户名称不能为空"`
  37. AbbrName string `p:"abbrName" json:"abbrName" ` // 助计名
  38. CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区
  39. CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址
  40. FollowUpDate *gtime.Time `p:"followUpDate" json:"followUpDate" ` //跟进时间
  41. CustIndustry string `p:"custIndustry" json:"custIndustry" v:"required#客户行业不能为空"` //客户行业
  42. CustLevel string `p:"custLevel" json:"custLevel" v:"required#客户级别不能为空"` //客户级别
  43. CustSource string `p:"custSource" json:"source" v:"required#客户来源不能为空"` //客户级别
  44. CustDistCode int `p:"custDistCode" json:"custDistCode" v:"required#省份不能为空" ` // 省份Id
  45. Remark string `p:"remark" json:"remark""` //备注
  46. SalesName string `p:"salesName" json:"salesName" ` //
  47. SalesId int `p:"salesId" json:"salesId" ` //
  48. }
  49. //返回信息
  50. type CustList struct {
  51. Id int `orm:"id,primary" json:"id"` // 主键
  52. CustCode string `orm:"cust_code" json:"custCode"` // 客户编号
  53. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  54. AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名
  55. CustLocation string `orm:"cust_location" json:"custLocation"` // 所在地区
  56. CustAddress string `orm:"cust_address" json:"custAddress"` // 详细地址
  57. CustStatus string `orm:"cust_status" json:"custStatus"` // 客户状态(10正常20)
  58. FollowUpDate string `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间
  59. CustIndustry string `orm:"cust_industry" json:"custIndustry"` // 客户行业
  60. CustLevel string `orm:"cust_level" json:"custLevel"` // 客户级别(10 重点客户 20 普通客户 30非优客户)
  61. CustSource string `orm:"cust_soucrce" json:"source"` // 客户来源
  62. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  63. CreatedTime string `orm:"created_time" json:"createdTime"` // 创建时间
  64. SalesId int `orm:"sales_id" json:"salesId"` //
  65. SalesName string `orm:"sales_name" json:"salesName"` //
  66. Remark string `orm:"remark" json:"remark"`
  67. //Follow *Follow `json:"follow"`
  68. }
  69. //跟进摘要
  70. type Follow struct {
  71. FollowCount int `json:"followCount"` // 跟进次数
  72. NotFollowDay int `json:"notFollowDay"` // 未跟进天数
  73. Business int `json:"business"` // 商机数量
  74. BusinessTotal float64 `json:"businessTotal"` // 商机总额
  75. DealCount int `json "dealCotal"` // 成交次数
  76. DealTotal float64 `json "dealTotal"` // 成交总额
  77. PaymentTotal float64 `json "paymentTotal"` // 回款总额
  78. NotPaymentTotal float64 `json "notPaymentTotal"` // 未回款总额
  79. DrawTotal float64 `json "drawTotal"` // 开票总额
  80. }
  81. //转移客户参数
  82. type CustSalesReq struct {
  83. Ids []int64 `json:"ids,omitempty"`
  84. SalesIds int64 `json:"salesIds,omitempty"`
  85. SalesName string `json:"salesName,omitempty"`
  86. Remark string `json:"remark,omitempty"`
  87. Receive string `json:"receive,omitempty"` //有值领取 无值分配
  88. }
  89. //分配 领取 转移 客户参数
  90. type AssignCustomerReq struct {
  91. Ids []int64 `json:"ids,omitempty"` //客户id
  92. SalesId int64 `json:"salesId,omitempty"` //分配到销售人员的id
  93. SalesName string `json:"salesName,omitempty"` //分配到销售人员的姓名
  94. Remark string `json:"remark,omitempty"`
  95. Receive string `json:"receive,omitempty"` //有值领取 无值分配
  96. }
  97. //删除客户参数
  98. type DelCustomer struct {
  99. Ids []int64 `json:"ids"` //客户ids
  100. }
  101. type DelCustomerContact struct {
  102. Ids []int64 `json:"ids"` //联系人id
  103. CustId int `json:custId` //客户Id
  104. }
  105. //MergeCustomerRep 合并客户参数
  106. type MergeCustomerRep struct {
  107. Id int64 `json:"id"` //目标Id
  108. *CustomerAddSeq
  109. *CustomerBelongAddSeq
  110. ChooseId []int64 `json:"chooseId,omitempty"` //被合并的客户id
  111. }
  112. //UpdateCustomer 修改客户
  113. type UpdateCustomer struct {
  114. Id int64 `json:"id,omitempty"` //客户id
  115. *CustomerAddSeq
  116. }
  117. //移入公海
  118. type MoveToPubicRep struct {
  119. Ids []int64 `json:"ids,omitempty"`
  120. Remark string `json:"remark,omitempty"`
  121. }
  122. //客户名称
  123. type CustName struct {
  124. CustName string `json:"custName"` // 客户名称
  125. }