feat: Move grpc pbs to shared

This commit is contained in:
2026-09-07 15:50:25 +00:00
parent 7b13944c24
commit 189a8fa963
30 changed files with 56 additions and 615 deletions
+19
View File
@@ -0,0 +1,19 @@
package codec
import (
"encoding/json"
)
type JSONCodec struct{}
func (JSONCodec) Marshal(v interface{}) ([]byte, error) {
return json.Marshal(v)
}
func (JSONCodec) Unmarshal(data []byte, v interface{}) error {
return json.Unmarshal(data, v)
}
func (JSONCodec) Name() string {
return "proto"
}