liuxiaolong
2019-07-05 2ad6896f54e43b28bff3bd3b07f96763b1e36801
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)