area.go 741 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. pb_v1 "property-household-gateway/pb/v1"
  5. )
  6. type ProvinceCityAreaRequest struct {
  7. base.Header
  8. }
  9. type ProvinceCityAreaResponse struct {
  10. base.Result
  11. Data pb_v1.ProvinceCityAreaReply `json:"data"`
  12. }
  13. type StreetCommitteeQuery struct {
  14. AreaCode string `form:"area_code" json:"area_code"`
  15. }
  16. type StreetCommitteeRequest struct {
  17. base.Header
  18. StreetCommitteeQuery
  19. }
  20. type StreetCommitteeResponse struct {
  21. base.Result
  22. Data pb_v1.StreetCommitteeReply `json:"data"`
  23. }
  24. type CityQuery struct {
  25. CityName string `form:"city_name" json:"city_name"`
  26. }
  27. type CityRequest struct {
  28. base.Header
  29. CityQuery
  30. }
  31. type CityResponse struct {
  32. base.Result
  33. Data pb_v1.CityReply `json:"data"`
  34. }