fix get-location-warehouse #19
|
@ -9,15 +9,15 @@ type LocationRequestPayload struct {
|
||||||
|
|
||||||
// ProvinceRequestPayload ...
|
// ProvinceRequestPayload ...
|
||||||
type ProvinceRequestPayload struct {
|
type ProvinceRequestPayload struct {
|
||||||
Codes []int `json:"Codes"`
|
Codes []int `json:"codes"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DistrictRequestPayload ...
|
// DistrictRequestPayload ...
|
||||||
type DistrictRequestPayload struct {
|
type DistrictRequestPayload struct {
|
||||||
Codes []int `json:"Codes"`
|
Codes []int `json:"codes"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WardRequestPayload ...
|
// WardRequestPayload ...
|
||||||
type WardRequestPayload struct {
|
type WardRequestPayload struct {
|
||||||
Codes []int `json:"Codes"`
|
Codes []int `json:"codes"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,15 +29,15 @@ type LocationWard struct {
|
||||||
|
|
||||||
// LocationProvinceResponse ...
|
// LocationProvinceResponse ...
|
||||||
type LocationProvinceResponse struct {
|
type LocationProvinceResponse struct {
|
||||||
Province []LocationProvince `json:"province"`
|
Provinces []LocationProvince `json:"provinces"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LocationDistrictResponse ...
|
// LocationDistrictResponse ...
|
||||||
type LocationDistrictResponse struct {
|
type LocationDistrictResponse struct {
|
||||||
District []LocationDistrict `json:"district"`
|
Districts []LocationDistrict `json:"districts"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LocationWardResponse ...
|
// LocationWardResponse ...
|
||||||
type LocationWardResponse struct {
|
type LocationWardResponse struct {
|
||||||
Ward []LocationWard `json:"ward"`
|
Wards []LocationWard `json:"wards"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ var Location = struct {
|
||||||
GetWardsByCodes string
|
GetWardsByCodes string
|
||||||
}{
|
}{
|
||||||
GetLocationByCode: getLocationValue("get_location_warehouse"),
|
GetLocationByCode: getLocationValue("get_location_warehouse"),
|
||||||
GetProvincesByCodes: getLocationValue("get_provinces_warehouse"),
|
GetProvincesByCodes: getLocationValue("get_provinces_by_codes"),
|
||||||
GetDistrictsByCodes: getLocationValue("get_districts_warehouse"),
|
GetDistrictsByCodes: getLocationValue("get_districts_by_codes"),
|
||||||
GetWardsByCodes: getLocationValue("get_wards_warehouse"),
|
GetWardsByCodes: getLocationValue("get_wards_by_codes"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue