cust_customer_belong.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. // CustCustomerBelong is the golang structure for table cust_customer_belong.
  11. type CustCustomerBelong internal.CustCustomerBelong
  12. // Fill with you ideas below.
  13. type CustomerBelongAddSeq struct {
  14. CustId int ` json:"custId" v:"required#关联客户ID不能为空"` // 关联客户
  15. SaleName string ` json:"saleName" v:"required#归属销售不能为空"` // 归属销售
  16. OrigSaleName string ` json:"origSaleName" ` // 原来归属
  17. OpnType string ` json:"opnType"` // 操作方式(10分配20转移)
  18. OpnPeople string ` json:"opnPeople" ` // 操作人
  19. StartDate *gtime.Time ` json:""startDate" v:"required#开始时间不能为空"` //开始时间
  20. OpnDatetime *gtime.Time ` json:"opnDatetime" ` // 操作时间
  21. }
  22. // 返回信息
  23. type CustomerBelongInfo struct {
  24. CustId int ` json:"custId"` // 关联客户
  25. SaleName string ` json:"saleName"` // 归属销售
  26. OrigSaleName string ` json:"origSaleName"` // 原来归属
  27. OpnType string ` json:"opnType"` // 操作方式(10分配20转移)
  28. OpnPeople string ` json:"opnPeople"` // 操作人
  29. OpnDatetime *gtime.Time ` json:"opnDatetime"` // 操作时间
  30. Remark string ` json:"remark"` // 备注
  31. CreatedBy int ` json:"createdBy"` // 创建者
  32. CreatedName string ` json:"createdName"` // 创建人
  33. CreatedTime *gtime.Time ` json:"createdTime"` // 创建时间
  34. StartDate *gtime.Time ` json:"startDate"` // 开始时间
  35. EndDate *gtime.Time ` json:"endDate"` // 结束时间
  36. }
  37. //列表操作
  38. type ReqCustomerBelongReq struct {
  39. CustId int ` json:"custId"` // 关联客户
  40. request.PageReq
  41. }