|
|
@@ -47,7 +47,7 @@ func GetLevelList(c *gin.Context) { |
|
|
|
countMap[utils.StrToInt(res["level"])] = res["total"] |
|
|
|
} |
|
|
|
|
|
|
|
list := make([]md2.LevelListNode, 0) |
|
|
|
list := make([]md2.LevelListNode, len(levels)) |
|
|
|
for i, level := range levels { |
|
|
|
list[i].LevelWeight = level.LevelWeight |
|
|
|
list[i].LevelID = level.Id |
|
|
|