refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: freight.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/ec/mall/proto/freight.proto
|
||||
|
||||
package mall
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -37,23 +38,23 @@ const (
|
||||
// 运费设置相关
|
||||
type FreightClient interface {
|
||||
// 运费模板列表
|
||||
Fetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*FreightReply, error)
|
||||
Fetch(ctx context.Context, in *protobuf.MallFetchRequest, opts ...grpc.CallOption) (*FreightReply, error)
|
||||
// 运费模板修改
|
||||
Modify(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Modify(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error)
|
||||
// 运费模板删除
|
||||
Delete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error)
|
||||
// 运费模板创建
|
||||
Create(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Create(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error)
|
||||
// 运费模板详情
|
||||
Detail(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*FreightItem, error)
|
||||
Detail(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*FreightItem, error)
|
||||
// 限制区域列表
|
||||
DenyRegionFetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*DenyRegionReply, error)
|
||||
DenyRegionFetch(ctx context.Context, in *protobuf.MallFetchRequest, opts ...grpc.CallOption) (*DenyRegionReply, error)
|
||||
// 新建限制区域
|
||||
DenyRegionCreate(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
DenyRegionCreate(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error)
|
||||
// 移除限制区域
|
||||
DenyRegionDelete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
DenyRegionDelete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error)
|
||||
// 编辑限制区域
|
||||
DenyRegionModify(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
DenyRegionModify(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error)
|
||||
}
|
||||
|
||||
type freightClient struct {
|
||||
@@ -64,7 +65,7 @@ func NewFreightClient(cc grpc.ClientConnInterface) FreightClient {
|
||||
return &freightClient{cc}
|
||||
}
|
||||
|
||||
func (c *freightClient) Fetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*FreightReply, error) {
|
||||
func (c *freightClient) Fetch(ctx context.Context, in *protobuf.MallFetchRequest, opts ...grpc.CallOption) (*FreightReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FreightReply)
|
||||
err := c.cc.Invoke(ctx, Freight_Fetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -74,9 +75,9 @@ func (c *freightClient) Fetch(ctx context.Context, in *FetchRequest, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) Modify(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *freightClient) Modify(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.IdentityStatusReply)
|
||||
err := c.cc.Invoke(ctx, Freight_Modify_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -84,9 +85,9 @@ func (c *freightClient) Modify(ctx context.Context, in *FreightItem, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) Delete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *freightClient) Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.IdentityStatusReply)
|
||||
err := c.cc.Invoke(ctx, Freight_Delete_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -94,9 +95,9 @@ func (c *freightClient) Delete(ctx context.Context, in *IdentRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) Create(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *freightClient) Create(ctx context.Context, in *FreightItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.IdentityStatusReply)
|
||||
err := c.cc.Invoke(ctx, Freight_Create_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -104,7 +105,7 @@ func (c *freightClient) Create(ctx context.Context, in *FreightItem, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) Detail(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*FreightItem, error) {
|
||||
func (c *freightClient) Detail(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*FreightItem, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FreightItem)
|
||||
err := c.cc.Invoke(ctx, Freight_Detail_FullMethodName, in, out, cOpts...)
|
||||
@@ -114,7 +115,7 @@ func (c *freightClient) Detail(ctx context.Context, in *IdentRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) DenyRegionFetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*DenyRegionReply, error) {
|
||||
func (c *freightClient) DenyRegionFetch(ctx context.Context, in *protobuf.MallFetchRequest, opts ...grpc.CallOption) (*DenyRegionReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(DenyRegionReply)
|
||||
err := c.cc.Invoke(ctx, Freight_DenyRegionFetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -124,9 +125,9 @@ func (c *freightClient) DenyRegionFetch(ctx context.Context, in *FetchRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) DenyRegionCreate(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *freightClient) DenyRegionCreate(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.IdentityStatusReply)
|
||||
err := c.cc.Invoke(ctx, Freight_DenyRegionCreate_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -134,9 +135,9 @@ func (c *freightClient) DenyRegionCreate(ctx context.Context, in *DenyRegionItem
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) DenyRegionDelete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *freightClient) DenyRegionDelete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.IdentityStatusReply)
|
||||
err := c.cc.Invoke(ctx, Freight_DenyRegionDelete_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -144,9 +145,9 @@ func (c *freightClient) DenyRegionDelete(ctx context.Context, in *IdentRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *freightClient) DenyRegionModify(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *freightClient) DenyRegionModify(ctx context.Context, in *DenyRegionItem, opts ...grpc.CallOption) (*protobuf.IdentityStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.IdentityStatusReply)
|
||||
err := c.cc.Invoke(ctx, Freight_DenyRegionModify_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -155,68 +156,66 @@ func (c *freightClient) DenyRegionModify(ctx context.Context, in *DenyRegionItem
|
||||
}
|
||||
|
||||
// FreightServer is the server API for Freight service.
|
||||
// All implementations must embed UnimplementedFreightServer
|
||||
// All implementations should embed UnimplementedFreightServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// 运费设置相关
|
||||
type FreightServer interface {
|
||||
// 运费模板列表
|
||||
Fetch(context.Context, *FetchRequest) (*FreightReply, error)
|
||||
Fetch(context.Context, *protobuf.MallFetchRequest) (*FreightReply, error)
|
||||
// 运费模板修改
|
||||
Modify(context.Context, *FreightItem) (*StatusReply, error)
|
||||
Modify(context.Context, *FreightItem) (*protobuf.IdentityStatusReply, error)
|
||||
// 运费模板删除
|
||||
Delete(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
Delete(context.Context, *protobuf.IdentRequest) (*protobuf.IdentityStatusReply, error)
|
||||
// 运费模板创建
|
||||
Create(context.Context, *FreightItem) (*StatusReply, error)
|
||||
Create(context.Context, *FreightItem) (*protobuf.IdentityStatusReply, error)
|
||||
// 运费模板详情
|
||||
Detail(context.Context, *IdentRequest) (*FreightItem, error)
|
||||
Detail(context.Context, *protobuf.IdentRequest) (*FreightItem, error)
|
||||
// 限制区域列表
|
||||
DenyRegionFetch(context.Context, *FetchRequest) (*DenyRegionReply, error)
|
||||
DenyRegionFetch(context.Context, *protobuf.MallFetchRequest) (*DenyRegionReply, error)
|
||||
// 新建限制区域
|
||||
DenyRegionCreate(context.Context, *DenyRegionItem) (*StatusReply, error)
|
||||
DenyRegionCreate(context.Context, *DenyRegionItem) (*protobuf.IdentityStatusReply, error)
|
||||
// 移除限制区域
|
||||
DenyRegionDelete(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
DenyRegionDelete(context.Context, *protobuf.IdentRequest) (*protobuf.IdentityStatusReply, error)
|
||||
// 编辑限制区域
|
||||
DenyRegionModify(context.Context, *DenyRegionItem) (*StatusReply, error)
|
||||
mustEmbedUnimplementedFreightServer()
|
||||
DenyRegionModify(context.Context, *DenyRegionItem) (*protobuf.IdentityStatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedFreightServer must be embedded to have
|
||||
// UnimplementedFreightServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedFreightServer struct{}
|
||||
|
||||
func (UnimplementedFreightServer) Fetch(context.Context, *FetchRequest) (*FreightReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented")
|
||||
func (UnimplementedFreightServer) Fetch(context.Context, *protobuf.MallFetchRequest) (*FreightReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Fetch not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) Modify(context.Context, *FreightItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented")
|
||||
func (UnimplementedFreightServer) Modify(context.Context, *FreightItem) (*protobuf.IdentityStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Modify not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) Delete(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
func (UnimplementedFreightServer) Delete(context.Context, *protobuf.IdentRequest) (*protobuf.IdentityStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) Create(context.Context, *FreightItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
func (UnimplementedFreightServer) Create(context.Context, *FreightItem) (*protobuf.IdentityStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) Detail(context.Context, *IdentRequest) (*FreightItem, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Detail not implemented")
|
||||
func (UnimplementedFreightServer) Detail(context.Context, *protobuf.IdentRequest) (*FreightItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Detail not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) DenyRegionFetch(context.Context, *FetchRequest) (*DenyRegionReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DenyRegionFetch not implemented")
|
||||
func (UnimplementedFreightServer) DenyRegionFetch(context.Context, *protobuf.MallFetchRequest) (*DenyRegionReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DenyRegionFetch not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) DenyRegionCreate(context.Context, *DenyRegionItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DenyRegionCreate not implemented")
|
||||
func (UnimplementedFreightServer) DenyRegionCreate(context.Context, *DenyRegionItem) (*protobuf.IdentityStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DenyRegionCreate not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) DenyRegionDelete(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DenyRegionDelete not implemented")
|
||||
func (UnimplementedFreightServer) DenyRegionDelete(context.Context, *protobuf.IdentRequest) (*protobuf.IdentityStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DenyRegionDelete not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) DenyRegionModify(context.Context, *DenyRegionItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DenyRegionModify not implemented")
|
||||
func (UnimplementedFreightServer) DenyRegionModify(context.Context, *DenyRegionItem) (*protobuf.IdentityStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DenyRegionModify not implemented")
|
||||
}
|
||||
func (UnimplementedFreightServer) mustEmbedUnimplementedFreightServer() {}
|
||||
func (UnimplementedFreightServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedFreightServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeFreightServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to FreightServer will
|
||||
@@ -226,7 +225,7 @@ type UnsafeFreightServer interface {
|
||||
}
|
||||
|
||||
func RegisterFreightServer(s grpc.ServiceRegistrar, srv FreightServer) {
|
||||
// If the following call pancis, it indicates UnimplementedFreightServer was
|
||||
// If the following call panics, it indicates UnimplementedFreightServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
@@ -237,7 +236,7 @@ func RegisterFreightServer(s grpc.ServiceRegistrar, srv FreightServer) {
|
||||
}
|
||||
|
||||
func _Freight_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FetchRequest)
|
||||
in := new(protobuf.MallFetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -249,7 +248,7 @@ func _Freight_Fetch_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
FullMethod: Freight_Fetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FreightServer).Fetch(ctx, req.(*FetchRequest))
|
||||
return srv.(FreightServer).Fetch(ctx, req.(*protobuf.MallFetchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -273,7 +272,7 @@ func _Freight_Modify_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
|
||||
func _Freight_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -285,7 +284,7 @@ func _Freight_Delete_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
FullMethod: Freight_Delete_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FreightServer).Delete(ctx, req.(*IdentRequest))
|
||||
return srv.(FreightServer).Delete(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -309,7 +308,7 @@ func _Freight_Create_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
|
||||
func _Freight_Detail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -321,13 +320,13 @@ func _Freight_Detail_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
FullMethod: Freight_Detail_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FreightServer).Detail(ctx, req.(*IdentRequest))
|
||||
return srv.(FreightServer).Detail(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Freight_DenyRegionFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FetchRequest)
|
||||
in := new(protobuf.MallFetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -339,7 +338,7 @@ func _Freight_DenyRegionFetch_Handler(srv interface{}, ctx context.Context, dec
|
||||
FullMethod: Freight_DenyRegionFetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FreightServer).DenyRegionFetch(ctx, req.(*FetchRequest))
|
||||
return srv.(FreightServer).DenyRegionFetch(ctx, req.(*protobuf.MallFetchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -363,7 +362,7 @@ func _Freight_DenyRegionCreate_Handler(srv interface{}, ctx context.Context, dec
|
||||
}
|
||||
|
||||
func _Freight_DenyRegionDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -375,7 +374,7 @@ func _Freight_DenyRegionDelete_Handler(srv interface{}, ctx context.Context, dec
|
||||
FullMethod: Freight_DenyRegionDelete_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(FreightServer).DenyRegionDelete(ctx, req.(*IdentRequest))
|
||||
return srv.(FreightServer).DenyRegionDelete(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -443,5 +442,5 @@ var Freight_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "freight.proto",
|
||||
Metadata: "module/ec/mall/proto/freight.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user