liuxiaolong
2019-07-05 6a9495ab6d6e6bc0a3a654cdd3b9a8be569edf6d
controllers/taglist.go
@@ -32,9 +32,9 @@
   fmt.Println(tokenRes["datalist"].([]interface{}))
   for _, value := range tokenRes["datalist"].([]interface{}) {
      tokenRes := make(map[string]interface{})
      tokenRes["key"] = value.(map[string]interface{})["uuid"].(string)
      tokenRes["key"] = value.(map[string]interface{})["id"].(string)
      tokenRes["title"] = value.(map[string]interface{})["tableName"].(string)
      tokenRes["value"] = value.(map[string]interface{})["uuid"].(string)
      tokenRes["value"] = value.(map[string]interface{})["id"].(string)
      sources = append(sources, tokenRes)
   }
   util.ResponseFormat(c, code.Success, sources)