fix struct

This commit is contained in:
Jay 2018-12-11 12:02:57 +08:00
parent e966ab64c2
commit 6fe7a91b27

View File

@ -146,7 +146,7 @@ func GetCommandList(c *context.Context) {
cmdList := make([]map[string]interface{}, len(cmds))
for k, v := range cmds {
tmp := utils.ToMap(v)
tmp := utils.ToMap(v.Commands)
tmp["group_name"] = v.GroupName
cmdList[k] = tmp
tmp = nil