cust_customer.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. 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. request.PageReq
  21. }
  22. // 添加客户信息表
  23. type AddCustCustomerReq struct {
  24. Cust *Customer
  25. Info *Information
  26. }
  27. // 单表添加客户信息表
  28. type Customer struct {
  29. CustName string `p:"custName" json:"custName" v:"required#客户名称不能为空"`
  30. AbbrName string `p:"abbrName" json:"abbrName" ` // 助计名
  31. //IndusTry string `p:"indusTry" json:"indusTry" v:"required#客户行业不能为空" ` //客户行业
  32. //Level string `p:"level" json:"level" v:"required#客户级别不能为空" `
  33. CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区
  34. CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址
  35. FollowUpDate *gtime.Time `p:"followUpDate" json:"followUpDate" ` //跟进时间
  36. Remark string
  37. //SalesName string `p:"salesName" json:"salesName" ` //
  38. //SalesId string `p:"salesId" json:"salesId" ` //
  39. }
  40. //客户联系人信息
  41. type Information struct {
  42. CuctName string `p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"`
  43. TelePhone string `p:"telePhone" json:"telePhone" v:"required|phone#手机号不能为空|手机号格式错误" orm:"telephone"`
  44. CuctGender string `p:"cuctGender" json:"cuctGender" ` // 尊称 性别
  45. Postion string `p:"postion" json:"postion" ` // 职位
  46. Email string `p:"email" json:"email" v:"email#邮箱格式错误" orm:"email" ` // 邮箱
  47. Remark string `p:"remark" json:"remark" ` // 备注
  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 *gtime.Time `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间
  59. CustIndustry string `orm:"cust_industry" json:"custIndustry"` // 客户行业
  60. CustLevel string `orm:"cust_level" json:"custLlevel"` // 客户级别(10 重点客户 20 普通客户 30非优客户)
  61. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  62. CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
  63. }
  64. //转移客户参数
  65. type CustSalesReq struct {
  66. Ids []int64 `json:"ids,omitempty"`
  67. SalesIds int64 `json:"salesids,omitempty"`
  68. Remark string `json:"remark,omitempty"`
  69. }
  70. //分配客户参数
  71. type DistriCustomer struct {
  72. Ids []int64 `json:"ids,omitempty"` //客户id
  73. SalesId int64 `json:"salesid,omitempty"` //分配到销售人员的id
  74. }