refactor: localize protobuf definitions

This commit is contained in:
2026-08-09 20:14:57 +08:00
parent 9f6f318bbb
commit 5ea45a76fe
429 changed files with 54058 additions and 61623 deletions

View File

@@ -9,7 +9,6 @@ It translates gRPC into RESTful JSON APIs.
package order
import (
"bsm/full/protobuf"
"context"
"errors"
"io"
@@ -92,7 +91,7 @@ func local_request_Summary_Submit_0(ctx context.Context, marshaler runtime.Marsh
func request_Summary_Check_0(ctx context.Context, marshaler runtime.Marshaler, client SummaryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq blocks.Empty
protoReq Empty
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -107,7 +106,7 @@ func request_Summary_Check_0(ctx context.Context, marshaler runtime.Marshaler, c
func local_request_Summary_Check_0(ctx context.Context, marshaler runtime.Marshaler, server SummaryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq blocks.Empty
protoReq Empty
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -119,7 +118,7 @@ func local_request_Summary_Check_0(ctx context.Context, marshaler runtime.Marsha
func request_Summary_Get_0(ctx context.Context, marshaler runtime.Marshaler, client SummaryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq blocks.OrderIdentRequest
protoReq OrderIdentRequest
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -134,7 +133,7 @@ func request_Summary_Get_0(ctx context.Context, marshaler runtime.Marshaler, cli
func local_request_Summary_Get_0(ctx context.Context, marshaler runtime.Marshaler, server SummaryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq blocks.OrderIdentRequest
protoReq OrderIdentRequest
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -281,7 +280,7 @@ func local_request_Summary_SimulateShipments_0(ctx context.Context, marshaler ru
func request_Summary_SimulateReceiving_0(ctx context.Context, marshaler runtime.Marshaler, client SummaryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq blocks.OrderIdentRequest
protoReq OrderIdentRequest
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -296,7 +295,7 @@ func request_Summary_SimulateReceiving_0(ctx context.Context, marshaler runtime.
func local_request_Summary_SimulateReceiving_0(ctx context.Context, marshaler runtime.Marshaler, server SummaryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq blocks.OrderIdentRequest
protoReq OrderIdentRequest
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {