cust_customer.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. "dashoo.cn/micro/app/model/cust/internal"
  8. )
  9. // CustCustomer is the golang structure for table cust_customer.
  10. type CustCustomer internal.CustCustomer
  11. // Fill with you ideas below.
  12. //列表搜索参数
  13. type CustCustomerSearchReq struct {
  14. KeyWords string `json:"custCode"`
  15. CustName string `json:"custName"`
  16. CuctName string `json:"cuctName"`
  17. SalesName string `json:"salesName"`
  18. Telephone string `json:"telePhone"`
  19. CustStatus string `json:"custStatus"` //客户状态
  20. request.PageReq
  21. }
  22. // 添加客户信息表
  23. type AddCustCustomerReq struct {
  24. Cust *Customer
  25. Info *Information
  26. }
  27. type Customer struct {
  28. CustName string `p:"custName" json:"custName" v:"required#客户名称不能为空"`
  29. AbbrName string `p:"abbrName" json:"abbrName" ` // 助计名
  30. CustLocation string `p:"custLocation" json:"custLocation" ` // 所在地区
  31. CustAddress string `p:"custAddress" json:"custAddress" ` // 详细地址
  32. SalesName string `p:"salesName" json:"salesName" ` //
  33. SalesId string `p:"salesId" json:"salesId" ` //
  34. }
  35. //客户联系人信息
  36. type Information struct {
  37. CuctName string `p:"cuctName" json:"cuctName" v:"required#联系人名字不能为空"`
  38. TelePhone string `p:"telePhone" json:"telePhone" v:"required|phone#手机号不能为空|手机号格式错误" orm:"telephone"`
  39. CuctGender string `p:"cuctGender" json:"cuctGender" ` // 尊称 性别
  40. Postion string `p:"postion" json:"postion" ` // 职位
  41. Email string `p:"email" json:"email" v:"email#邮箱格式错误" orm:"email" ` // 邮箱
  42. Remark string `p:"remark" json:"remark" ` // 备注
  43. }
  44. //返回信息
  45. type CustList struct {
  46. *CustCustomer
  47. CuctName string `p:"cuctName" json:"cuctName"`
  48. TelePhone string `p:"telePhone" json:"telePhone"`
  49. }
  50. //转移客户参数
  51. type CustSalesReq struct {
  52. Ids []int64 `json:"ids,omitempty"`
  53. SalesIds int64 `json:"salesids,omitempty"`
  54. Remark string `json:"remark,omitempty"`
  55. }
  56. //分配客户参数
  57. type DistriCustomer struct {
  58. Ids []int64 `json:"ids,omitempty"` //客户id
  59. SalesId int64 `json:"salesid,omitempty"` //分配到销售人员的id
  60. }