mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 00:55:59 +08:00
del msg
This commit is contained in:
@@ -143,7 +143,10 @@ func Pb2String(pb proto.Message) (string, error) {
|
||||
EmitDefaults: false,
|
||||
}
|
||||
return marshaler.MarshalToString(pb)
|
||||
}
|
||||
|
||||
func String2Pb(s string, pb proto.Message) error {
|
||||
return proto.Unmarshal([]byte(s), pb)
|
||||
}
|
||||
|
||||
func Map2Pb(m map[string]interface{}) (pb proto.Message, err error) {
|
||||
|
||||
Reference in New Issue
Block a user