Skip to content

Commit

Permalink
fixed city code type from *int to *string (returned empty string by A…
Browse files Browse the repository at this point in the history
…PI) (#7)

Co-authored-by: Molodkovets Bogdan <atcdot@yandex.ru>
  • Loading branch information
atcdot and Molodkovets Bogdan committed Jul 9, 2020
1 parent 04c2f04 commit bbe6181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion city-models.go
Expand Up @@ -7,7 +7,7 @@ type GetCitiesResp []*City
type City struct {
CityUUID *string `json:"cityUuid"`
CityName *string `json:"cityName"`
CityCode *int `json:"cityCode,string"`
CityCode *string `json:"cityCode"`
Region *string `json:"region"`
RegionCodeExt *int `json:"regionCodeExt,string"`
RegionCode *int `json:"regionCode,string"`
Expand Down
4 changes: 2 additions & 2 deletions city-service_test.go
Expand Up @@ -99,7 +99,7 @@ func TestClient_GetCities(t *testing.T) {
&City{
strLink("dece8676-077e-4793-9d67-96112fe96b03"),
strLink("Москва"),
intLink(61627),
strLink("61627"),
strLink("Кировская"),
intLink(43),
intLink(44),
Expand All @@ -116,7 +116,7 @@ func TestClient_GetCities(t *testing.T) {
&City{
strLink("18bd1ad1-0ed5-4908-9069-db07b805aa53"),
strLink("Москва"),
intLink(44),
strLink("44"),
strLink("Москва"),
intLink(77),
intLink(81),
Expand Down

0 comments on commit bbe6181

Please sign in to comment.