natsio/model/location_response.go

44 lines
938 B
Go
Raw Normal View History

2022-08-26 10:15:49 +00:00
package model
type ResponseLocationAddress struct {
Province LocationProvince `json:"province"`
District LocationDistrict `json:"district"`
Ward LocationWard `json:"ward"`
}
// LocationProvince ...
type LocationProvince struct {
ID string `json:"id"`
Name string `json:"name"`
2022-08-29 11:07:58 +00:00
Code int `json:"code"`
2022-08-26 10:15:49 +00:00
}
// LocationDistrict ...
type LocationDistrict struct {
ID string `json:"id"`
Name string `json:"name"`
2022-08-29 11:07:58 +00:00
Code int `json:"code"`
2022-08-26 10:15:49 +00:00
}
// LocationWard ...
type LocationWard struct {
ID string `json:"id"`
Name string `json:"name"`
2022-08-29 11:07:58 +00:00
Code int `json:"code"`
2022-08-26 10:15:49 +00:00
}
2022-09-07 07:01:29 +00:00
// LocationProvinceResponse ...
type LocationProvinceResponse struct {
2022-09-07 07:10:23 +00:00
Provinces []LocationProvince `json:"provinces"`
2022-09-07 07:01:29 +00:00
}
// LocationDistrictResponse ...
type LocationDistrictResponse struct {
2022-09-07 07:10:23 +00:00
Districts []LocationDistrict `json:"districts"`
2022-09-07 07:01:29 +00:00
}
// LocationWardResponse ...
type LocationWardResponse struct {
2022-09-07 07:10:23 +00:00
Wards []LocationWard `json:"wards"`
2022-09-07 07:01:29 +00:00
}