提交 a654073c 编写于 作者: W wenxu12345

Refactor code

上级 eb417c7e
......@@ -6,9 +6,9 @@ import (
"github.com/golang/protobuf/proto"
)
func JsonDataList(resp interface{}) []map[string]interface{} {
func JsonDataList(resp ...interface{}) []map[string]interface{} {
result := make([]map[string]interface{}, 0)
for _, v := range resp.([]proto.Message) {
for _, v := range resp {
m := ProtoToMap(v.(proto.Message), false)
result = append(result, m)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册