Merge branch 'refactor-location' into develop

This commit is contained in:
thaingocquang 2022-11-21 00:09:03 +07:00
commit 5eb76d813c
1 changed files with 21 additions and 33 deletions

View File

@ -1,7 +1,5 @@
package model package model
import "time"
type ( type (
// ResponseLocationAddress ... // ResponseLocationAddress ...
ResponseLocationAddress struct { ResponseLocationAddress struct {
@ -53,44 +51,34 @@ type (
// LocationProvinceDetailResponse ... // LocationProvinceDetailResponse ...
LocationProvinceDetailResponse struct { LocationProvinceDetailResponse struct {
ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
SearchString string `json:"searchString"` Slug string `json:"slug"`
OldSlug string `json:"oldSlug"`
Code int `json:"code"` Code int `json:"code"`
CountryCode string `json:"countryCode"` CountryCode string `json:"countryCode"`
RegionCode string `json:"regionCode"` RegionCode string `json:"regionCode"`
MainRegionCode string `json:"mainRegionCode"` MainRegionCode string `json:"mainRegionCode"`
TotalDistricts int `json:"totalDistricts"` TotalDistricts int `json:"totalDistricts"`
TotalWards int `json:"totalWards"` TotalWards int `json:"totalWards"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
} }
// LocationDistrictDetailResponse ... // LocationDistrictDetailResponse ...
LocationDistrictDetailResponse struct { LocationDistrictDetailResponse struct {
ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
SearchString string `json:"searchString"` OldSlugs []string `json:"oldSlugs"`
OldSlug string `json:"oldSlug"` Slug string `json:"slug"`
Code int `json:"code"` Code int `json:"code"`
ProvinceCode int `json:"provinceCode"` ProvinceCode int `json:"provinceCode"`
Area int `json:"area"` Area int `json:"area"`
TotalWards int `json:"totalWards"` TotalWards int `json:"totalWards"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
} }
// LocationWardDetailResponse ... // LocationWardDetailResponse ...
LocationWardDetailResponse struct { LocationWardDetailResponse struct {
ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
SearchString string `json:"searchString"`
OldSlugs []string `json:"oldSlugs"` OldSlugs []string `json:"oldSlugs"`
Slug string `json:"slug"`
Code int `json:"code"` Code int `json:"code"`
DistrictCode int `json:"districtCode"` DistrictCode int `json:"districtCode"`
ProvinceCode int `json:"provinceCode"` ProvinceCode int `json:"provinceCode"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
} }
) )