refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: pages.proto
|
||||
// source: module/base/cms/proto/pages.proto
|
||||
|
||||
/*
|
||||
Package cms is a reverse proxy.
|
||||
@@ -9,6 +9,7 @@ It translates gRPC into RESTful JSON APIs.
|
||||
package cms
|
||||
|
||||
import (
|
||||
"bsm/full/protobuf"
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
@@ -172,7 +173,7 @@ func local_request_Pages_Modify_0(ctx context.Context, marshaler runtime.Marshal
|
||||
|
||||
func request_Pages_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client PagesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -187,7 +188,7 @@ func request_Pages_Delete_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
||||
|
||||
func local_request_Pages_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server PagesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
|
||||
Reference in New Issue
Block a user