base_sales_region_detail.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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/micro/app/model/base/internal"
  7. "dashoo.cn/opms_libary/request"
  8. "github.com/gogf/gf/os/gtime"
  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. DistId int `json:"distId" v:"required#区域编码不能为空"` // 行政区县ID
  25. DistName string `json:"distName" v:"required#区域名称不能为空"` // 行政区县名称
  26. Remark string
  27. }
  28. // 列表字段
  29. type BaseRegionDetailRep struct {
  30. Id int `p:"id" json:"id" `
  31. RegionId int `p:"regionId" json:"regionId" `
  32. DistId int `p:"distId" json:"distId" `
  33. DistName string `p:"distName" json:"distName" `
  34. Count int `p:"count" json:"count" `
  35. Remark string `p:"remark" json:"remark" `
  36. CreatedName string `p:"createdName" json:"createdName" `
  37. CreatedTime gtime.Time `p:"createdTime" json:"createdTime" `
  38. }
  39. //更新
  40. type UpdateBaseRegionDetailReq struct {
  41. *BaseSalesRegionDetail
  42. Id int `p:"id" json:"id" v:"required# id不能为空"`
  43. }