fix struct
This commit is contained in:
parent
e966ab64c2
commit
6fe7a91b27
@ -146,7 +146,7 @@ func GetCommandList(c *context.Context) {
|
|||||||
|
|
||||||
cmdList := make([]map[string]interface{}, len(cmds))
|
cmdList := make([]map[string]interface{}, len(cmds))
|
||||||
for k, v := range cmds {
|
for k, v := range cmds {
|
||||||
tmp := utils.ToMap(v)
|
tmp := utils.ToMap(v.Commands)
|
||||||
tmp["group_name"] = v.GroupName
|
tmp["group_name"] = v.GroupName
|
||||||
cmdList[k] = tmp
|
cmdList[k] = tmp
|
||||||
tmp = nil
|
tmp = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user