cust_customer.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. )
  8. // CustCustomer is the golang structure for table cust_customer.
  9. type CustCustomer internal.CustCustomer
  10. // Fill with you ideas below.
  11. //CustCustomerSearchReq 列表搜索参数
  12. type CustCustomerSearchReq struct {
  13. IsPublic bool `json:"isPublic,omitempty"` //区分是否是公海用户列表
  14. CustCode string `json:"custCode"`
  15. CustName string `json:"custName"`
  16. CustIndustry string `json:"custIndustry"`
  17. CustLevel string `json:"custLevel"`
  18. TargetType string `json:"targetType,omitempty"`
  19. //FollowUpDate string `json:"followUpDate,omitempty"`
  20. Remark string `json:"remark"`
  21. IsRemovePage bool `json:"isRemovePage,omitempty"` //是否去掉分页
  22. CustProvince string `json:"custProvince"` // 所在省
  23. CustCity string `json:"custCity"` // 所在市
  24. SalesName string `json:"salesName"` // 所属于销售
  25. request.PageReq
  26. }
  27. // CustCustomerExport 导出参数
  28. type CustCustomerExport struct {
  29. CustCustomerSearchReq
  30. Columns []string `json:"columns"` // 导出列
  31. }
  32. //导出字节流
  33. type CustExport struct {
  34. Content []byte `json:"content"` // 导出数据流
  35. }
  36. // CustomerAddSeq 单表添加客户信息表
  37. type CustomerAddSeq struct {
  38. CustName string `p:"custName" json:"custName" v:"required#客户名称不能为空"` // 客户名称
  39. AbbrName string `p:"abbrName" json:"abbrName" ` // 助计名
  40. CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区
  41. CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址
  42. CustProvinceId int `json:"custProvinceId"` // 所在省ID
  43. CustProvince string `json:"custProvince"` // 所在省
  44. CustCityId int `json:"custCityId"` // 所在市ID
  45. CustCity string `json:"custCity"` // 所在市
  46. CustRegionId int `json:"custRegionId"` // 所在区县ID
  47. CustRegion string `json:"custRegion"` // 所在区县
  48. //FollowUpDate *gtime.Time `p:"followUpDate" json:"followUpDate" ` //跟进时间
  49. CustIndustry string `p:"custIndustry" json:"custIndustry" v:"required#客户行业不能为空"` //客户行业
  50. CustLevel string `p:"custLevel" json:"custLevel"` //客户级别
  51. CustSource string `p:"custSource" json:"custSource" v:"required#客户来源不能为空"` //客户来源
  52. CustDistCode int `p:"custDistCode" json:"custDistCode" v:"required#省份不能为空" ` // 省份Id
  53. Remark string `p:"remark" json:"remark"` //备注
  54. SalesName string `p:"salesName" json:"salesName" ` // 销售名称
  55. SalesId int `p:"salesId" json:"salesId" ` // 销售id
  56. InvoiceHeader string `json:"invoiceHeader"` // 开票抬头
  57. Keyword []string `json:"keyword"` // 招标关键字
  58. }
  59. // 客户联系人信息
  60. type Information struct {
  61. CuctName string `p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"`
  62. TelePhone string `p:"telePhone" json:"telePhone" v:"required|phone#手机号不能为空|手机号格式错误" orm:"telephone"`
  63. CuctGender string `p:"cuctGender" json:"cuctGender" ` // 尊称 性别
  64. Postion string `p:"postion" json:"postion" ` // 职位
  65. Email string `p:"email" json:"email" v:"email#邮箱格式错误" orm:"email" ` // 邮箱
  66. Remark string `p:"remark" json:"remark" ` // 备注
  67. }
  68. //返回信息
  69. type CustList struct {
  70. Id int `orm:"id,primary" json:"id"` // 主键
  71. CustCode string `orm:"cust_code" json:"custCode"` // 客户编号
  72. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  73. AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名
  74. CustLocation string `orm:"cust_location" json:"custLocation"` // 所在地区
  75. CustAddress string `orm:"cust_address" json:"custAddress"` // 详细地址
  76. CustProvinceId int `json:"custProvinceId"` // 所在省ID
  77. CustProvince string `json:"custProvince"` // 所在省
  78. CustCityId int `json:"custCityId"` // 所在市ID
  79. CustCity string `json:"custCity"` // 所在市
  80. CustRegionId int `json:"custRegionId"` // 所在区县ID
  81. CustRegion string `json:"custRegion"` // 所在区县
  82. CustStatus string `orm:"cust_status" json:"custStatus"` // 客户状态(10正常20)
  83. FollowUpDate string `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间
  84. FollowUpMan string `json:"followUpMan"` // 最后跟进人
  85. CustIndustry string `orm:"cust_industry" json:"custIndustry"` // 客户行业
  86. CustLevel string `orm:"cust_level" json:"custLevel"` // 客户级别(10 重点客户 20 普通客户 30非优客户)
  87. CustSource string `orm:"cust_soucrce" json:"custSource"` // 客户来源
  88. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  89. CreatedTime string `orm:"created_time" json:"createdTime"` // 创建时间
  90. SalesId int `orm:"sales_id" json:"salesId"` //
  91. SalesName string `orm:"sales_name" json:"salesName"` //
  92. Keyword string `orm:"keyword" json:"keyword"` // 招标关键字
  93. Remark string `orm:"remark" json:"remark"`
  94. //Follow *Follow `json:"follow"`
  95. InvoiceHeader string `orm:"invoice_header" json:"invoiceHeader"` // 开票抬头
  96. }
  97. // 跟进摘要
  98. type Follow struct {
  99. FollowCount int `json:"followCount"` // 跟进次数
  100. NotFollowDay int `json:"notFollowDay"` // 未跟进天数
  101. Business int `json:"business"` // 商机数量
  102. BusinessTotal float64 `json:"businessTotal"` // 商机总额
  103. DealCount int `json: "dealCotal"` // 成交次数
  104. DealTotal float64 `json: "dealTotal"` // 成交总额
  105. PaymentTotal float64 `json: "paymentTotal"` // 回款总额
  106. NotPaymentTotal float64 `json: "notPaymentTotal"` // 未回款总额
  107. DrawTotal float64 `json: "drawTotal"` // 开票总额
  108. }
  109. // 分配 领取 转移 客户参数
  110. type AssignCustomerReq struct {
  111. Ids []int64 `json:"ids,omitempty"` //客户id
  112. SalesId int64 `json:"salesId,omitempty"` //分配到销售人员的id
  113. SalesName string `json:"salesName,omitempty"` //分配到销售人员的姓名
  114. Remark string `json:"remark,omitempty"`
  115. Receive string `json:"receive,omitempty"` //有值领取 无值分配
  116. ApplyRemark string `json:"applyRemark,omitempty"`
  117. }
  118. // 删除客户参数
  119. type DelCustomer struct {
  120. Ids []int64 `json:"ids"` //客户ids
  121. }
  122. type DelCustomerContact struct {
  123. Ids []int64 `json:"ids"` //联系人id
  124. CustId int `json:custId` //客户Id
  125. }
  126. // 合并客户参数
  127. type MergeCustomerRep struct {
  128. Id int64 `json:"id"` //目标Id
  129. *CustomerAddSeq
  130. *CustomerBelongAddSeq
  131. ChooseId []int64 `json:"chooseId,omitempty"` //被合并的客户id
  132. }
  133. // UpdateCustomer 修改客户
  134. type UpdateCustomer struct {
  135. Id int64 `json:"id,omitempty"` //客户id
  136. *CustomerAddSeq
  137. }
  138. // 移入公海
  139. type MoveToPubicRep struct {
  140. Ids []int64 `json:"ids,omitempty"`
  141. Remark string `json:"remark,omitempty"` // 移回原因
  142. }
  143. // 客户名称
  144. type IsExistsCustName struct {
  145. Id int `json:"id,omitempty"` //客户id
  146. CustName string `json:"custName"` // 客户名称
  147. }