| | |
| | | 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) |