update location add find by slug

This commit is contained in:
quang1472001 2022-10-06 09:19:21 +07:00
parent a86a097886
commit 29b2b861ff
1 changed files with 12 additions and 9 deletions

View File

@ -15,8 +15,9 @@ type (
// ProvinceRequestCondition ...
ProvinceRequestCondition struct {
Code int `json:"code"`
Codes []int `json:"codes"`
Code int `json:"code"`
Codes []int `json:"codes"`
Slug string `json:"slug"`
}
// DistrictRequestPayload ...
@ -26,9 +27,10 @@ type (
// DistrictRequestCondition ...
DistrictRequestCondition struct {
Code int `json:"code"`
Codes []int `json:"codes"`
ProvinceCode int `json:"provinceCode"`
Code int `json:"code"`
Codes []int `json:"codes"`
ProvinceCode int `json:"provinceCode"`
Slug string `json:"slug"`
}
// WardRequestPayload ...
@ -38,9 +40,10 @@ type (
// WardRequestCondition ...
WardRequestCondition struct {
Code int `json:"code"`
Codes []int `json:"codes"`
DistrictCode int `json:"districtCode"`
ProvinceCode int `json:"provinceCode"`
Code int `json:"code"`
Codes []int `json:"codes"`
DistrictCode int `json:"districtCode"`
ProvinceCode int `json:"provinceCode"`
Slug string `json:"slug"`
}
)