mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
Refactor code
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
func JsonDataList(resp ...interface{}) []map[string]interface{} {
|
||||
result := make([]map[string]interface{}, 0)
|
||||
for _, v := range resp {
|
||||
m := ProtoToMap(v.(proto.Message), false)
|
||||
for _, v := range resp[0].([]proto.Message) {
|
||||
m := ProtoToMap(v, false)
|
||||
result = append(result, m)
|
||||
}
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user