base_sales_region_detail.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package base
  5. import (
  6. "dashoo.cn/opms_libary/request"
  7. "github.com/gogf/gf/os/gtime"
  8. "dashoo.cn/micro/app/model/base/internal"
  9. )
  10. // BaseSalesRegionDetail is the golang structure for table base_sales_region_detail.
  11. type BaseSalesRegionDetail internal.BaseSalesRegionDetail
  12. // Fill with you ideas below.
  13. //条件搜索
  14. type SecBaseRegionDetailReq struct {
  15. RegionId int `p:"regionId" json:"regionId"`
  16. CustCode string `p:"custCode" json:"custCode"`
  17. CustName string `p:"custName" json:"custName"`
  18. CustIndustry string `p:"custIndustry" json:"custIndustry"`
  19. request.PageReq
  20. }
  21. //创建区域
  22. type AddBaseRegionDetailReq struct {
  23. RegionId int `p:"regionId" json:"regionId" v:"required#关联销售区域"`
  24. ProvinceCode int `p:"provinceCode" json:"provinceCode" v:"required#区域编码不能为空"`
  25. Remark string
  26. }
  27. //列表字段
  28. type BaseRegionDetailRep struct {
  29. Id int `p:"id" json:"id" `
  30. RegionId int `p:"regionId" json:"regionId" `
  31. ProvinceCode int `p:"provinceCode" json:"provinceCode" `
  32. CreatedName string `p:"createdName" json:"createdName" `
  33. Count int `p:"count" json:"count" `
  34. DistName string `p:"distName" json:"distName" `
  35. CreatedTime gtime.Time `p:"createdTime" json:"createdTime" `
  36. Remark string `p:"remark" json:"remark" `
  37. }
  38. //更新
  39. type UpdateBaseRegionDetailReq struct {
  40. *BaseSalesRegionDetail
  41. Id int `p:"id" json:"id" v:"required# id不能为空"`
  42. }
  43. type BaseRegionCustomer struct {
  44. CustDistCode string `p:"custDistCode" json:"custDistCode" `
  45. Count int `p:"count" json:"count" `
  46. }
  47. type DeleteBaseRegionDetailReq struct {
  48. Ids []int64 `json:"ids" v:"required# id不能为空"`
  49. }
  50. type BaseRegionCountNum struct {
  51. //cust_dist_code
  52. Count int `p:"count" json:"count" `
  53. }