base_district.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. //Provinces 省市区三级结构
  17. type ProvincesTree struct {
  18. Id int `json:"id"`
  19. ParentId int `json:"parentId"`
  20. DistName string `json:"distName" `
  21. Children []*ProvincesTree `json:"children"`
  22. }
  23. type Province struct {
  24. Id int `json:"id"`
  25. ParentId int `json:"parentId"`
  26. DistName string `json:"distName" `
  27. }
  28. type Region struct {
  29. Id int `json:"id"`
  30. RegionDesc string `json:"regionDesc" `
  31. Children []*District `json:"children" `
  32. }
  33. type District struct {
  34. RegionDesc string `json:"regionDesc" `
  35. RegionId int `json:"RegionId" `
  36. Id int `json:"id" `
  37. }