[location] update location resp model

This commit is contained in:
thaingocquang 2022-11-21 00:08:21 +07:00
parent b9885a2a02
commit be18b81589
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"` Slug string `json:"slug"`
SearchString string `json:"searchString"` Code int `json:"code"`
OldSlug string `json:"oldSlug"` CountryCode string `json:"countryCode"`
Code int `json:"code"` RegionCode string `json:"regionCode"`
CountryCode string `json:"countryCode"` MainRegionCode string `json:"mainRegionCode"`
RegionCode string `json:"regionCode"` TotalDistricts int `json:"totalDistricts"`
MainRegionCode string `json:"mainRegionCode"` TotalWards int `json:"totalWards"`
TotalDistricts int `json:"totalDistricts"`
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"` OldSlugs []string `json:"oldSlugs"`
SearchString string `json:"searchString"` Slug string `json:"slug"`
OldSlug string `json:"oldSlug"` 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"` OldSlugs []string `json:"oldSlugs"`
SearchString string `json:"searchString"` Slug string `json:"slug"`
OldSlugs []string `json:"oldSlugs"` 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"`
} }
) )