base_district.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "dashoo.cn/micro/app/model/base/internal"
  8. )
  9. // BaseDistrict is the golang structure for table base_district.
  10. type BaseDistrict internal.BaseDistrict
  11. // Fill with you ideas below.
  12. type BaseDistrictSearchReq struct {
  13. Id int `json:"id"` // 省份ID
  14. request.PageReq
  15. }
  16. type T struct {
  17. Id int `json:"id"`
  18. ParentId int `json:"parentId"`
  19. DistName string `json:"distName" `
  20. Children []*T `json:"children"`
  21. }
  22. type Province struct {
  23. Id int `json:"id"`
  24. ParentId int `json:"parentId"`
  25. DistName string `json:"distName" `
  26. }
  27. type Region struct {
  28. Id int `json:"id"`
  29. RegionDesc string `json:"regionDesc" `
  30. Children []*District `json:"children" `
  31. }
  32. type District struct {
  33. RegionDesc string `json:"regionDesc" `
  34. RegionId int `json:"RegionId" `
  35. Id int `json:"id" `
  36. }