Merge pull request 'feature/update-location-ward' (#164) from feature/update-location-ward into master
Reviewed-on: #164 Reviewed-by: trunglam <trunglam@selly.vn>
This commit is contained in:
		
						commit
						2b9092ecbe
					
				| 
						 | 
					@ -28,10 +28,17 @@ type (
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// LocationWard ...
 | 
						// LocationWard ...
 | 
				
			||||||
	LocationWard struct {
 | 
						LocationWard struct {
 | 
				
			||||||
		ID   string `json:"id"`
 | 
							ID       string       `json:"id"`
 | 
				
			||||||
		Name string `json:"name"`
 | 
							Name     string       `json:"name"`
 | 
				
			||||||
		Code int    `json:"code"`
 | 
							Code     int          `json:"code"`
 | 
				
			||||||
		Slug string `json:"slug"`
 | 
							Slug     string       `json:"slug"`
 | 
				
			||||||
 | 
							Location *GEOLocation `json:"location"`
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// GEOLocation ...
 | 
				
			||||||
 | 
						GEOLocation struct {
 | 
				
			||||||
 | 
							Type        string    `bson:"type" json:"type"`
 | 
				
			||||||
 | 
							Coordinates []float64 `bson:"coordinates" json:"coordinates"`
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// LocationProvinceResponse ...
 | 
						// LocationProvinceResponse ...
 | 
				
			||||||
| 
						 | 
					@ -76,12 +83,13 @@ type (
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// LocationWardDetailResponse ...
 | 
						// LocationWardDetailResponse ...
 | 
				
			||||||
	LocationWardDetailResponse struct {
 | 
						LocationWardDetailResponse struct {
 | 
				
			||||||
		ID           string   `json:"_id"`
 | 
							ID           string       `json:"_id"`
 | 
				
			||||||
		Name         string   `json:"name"`
 | 
							Name         string       `json:"name"`
 | 
				
			||||||
		OldSlugs     []string `json:"oldSlugs"`
 | 
							OldSlugs     []string     `json:"oldSlugs"`
 | 
				
			||||||
		Slug         string   `json:"slug"`
 | 
							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"`
 | 
				
			||||||
 | 
							Location     *GEOLocation `json:"location"`
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue