mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
Refactor code
This commit is contained in:
parent
06af2b6aa3
commit
136e0cde06
@ -33,7 +33,7 @@ func ProtoToMap(pb proto.Message, idFix bool) map[string]interface{} {
|
|||||||
marshaler := jsonpb.Marshaler{
|
marshaler := jsonpb.Marshaler{
|
||||||
OrigName: true,
|
OrigName: true,
|
||||||
EnumsAsInts: false,
|
EnumsAsInts: false,
|
||||||
EmitDefaults: true,
|
EmitDefaults: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
s, _ := marshaler.MarshalToString(pb)
|
s, _ := marshaler.MarshalToString(pb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user