req := new(protoTest)
ju := &jsonpb.Unmarshaler{AllowUnknownFields: true}
if err := ju.Unmarshal(c.Request().Body, req); err != nil {
...
}
jm := new(jsonpb.Marshaler)
b := new(bytes.Buffer)
if err := jm.Marshal(b, body); err != nil {
...
}
// 使用"github.com/golang/protobuf/proto"的Message类型