feat: minilogin改造
This commit is contained in:
@@ -36,7 +36,18 @@ func (l *GetLevelConfigListLogic) GetLevelConfigList(req *types.LevelConfigListR
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
resList := make([]map[string]interface{}, 0, len(result.List))
|
||||
for _, item := range result.List {
|
||||
resList = append(resList, map[string]interface{}{
|
||||
"id": item.Id,
|
||||
"level": item.Level,
|
||||
"title": item.Title,
|
||||
"minSunlight": item.MinSunlight, // Explicitly keep 0 values in JSON
|
||||
"perks": item.Perks,
|
||||
})
|
||||
}
|
||||
|
||||
return map[string]interface{}{
|
||||
"list": result.List,
|
||||
"list": resList,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user