|
@@ -159,11 +159,10 @@ func Group(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
continents := make(map[string]bool)
|
|
|
- for _, node := range nodes {
|
|
|
- continents[node.CountryCode] = true
|
|
|
+ for _, node := range dtoNodes {
|
|
|
+ continents[node.Continent] = true
|
|
|
}
|
|
|
|
|
|
- // 再遍历出每个 node 对应的 groups
|
|
|
groupDtos := make([]*dto.Group, 0)
|
|
|
for continent := range continents {
|
|
|
groupDto := &dto.Group{
|