554325746@qq.com
2019-07-05 d83f5863d6c675d6aed09cfe7bfdaadc0c6221d9
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)