From 2030ec81f18f4ec9ea1800f13046acafff6d50f7 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期四, 26 九月 2024 00:48:59 +0800
Subject: [PATCH] 添加grpc方法:客户信息维护
---
proto/product_inventory/product_inventory_grpc.pb.go | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/proto/product_inventory/product_inventory_grpc.pb.go b/proto/product_inventory/product_inventory_grpc.pb.go
index f2bc889..e708a6e 100644
--- a/proto/product_inventory/product_inventory_grpc.pb.go
+++ b/proto/product_inventory/product_inventory_grpc.pb.go
@@ -24,6 +24,7 @@
ProductInventoryService_UpdateSalesDetailStatus_FullMethodName = "/productInventoryService/UpdateSalesDetailStatus"
ProductInventoryService_GetOrderInputAndOutputInfo_FullMethodName = "/productInventoryService/GetOrderInputAndOutputInfo"
ProductInventoryService_OrderProductOutput_FullMethodName = "/productInventoryService/OrderProductOutput"
+ ProductInventoryService_GetOutputOperationInfo_FullMethodName = "/productInventoryService/GetOutputOperationInfo"
)
// ProductInventoryServiceClient is the client API for ProductInventoryService service.
@@ -35,6 +36,7 @@
UpdateSalesDetailStatus(ctx context.Context, in *UpdateSalesDetailStatusRequest, opts ...grpc.CallOption) (*UpdateSalesDetailStatusResponse, error)
GetOrderInputAndOutputInfo(ctx context.Context, in *GetOrderInputAndOutputInfoRequest, opts ...grpc.CallOption) (*GetOrderInputAndOutputInfoResponse, error)
OrderProductOutput(ctx context.Context, in *OrderProductOutputRequest, opts ...grpc.CallOption) (*OrderProductOutputResponse, error)
+ GetOutputOperationInfo(ctx context.Context, in *GetOutputOperationInfoRequest, opts ...grpc.CallOption) (*GetOutputOperationInfoResponse, error)
}
type productInventoryServiceClient struct {
@@ -90,6 +92,15 @@
return out, nil
}
+func (c *productInventoryServiceClient) GetOutputOperationInfo(ctx context.Context, in *GetOutputOperationInfoRequest, opts ...grpc.CallOption) (*GetOutputOperationInfoResponse, error) {
+ out := new(GetOutputOperationInfoResponse)
+ err := c.cc.Invoke(ctx, ProductInventoryService_GetOutputOperationInfo_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// ProductInventoryServiceServer is the server API for ProductInventoryService service.
// All implementations must embed UnimplementedProductInventoryServiceServer
// for forward compatibility
@@ -99,6 +110,7 @@
UpdateSalesDetailStatus(context.Context, *UpdateSalesDetailStatusRequest) (*UpdateSalesDetailStatusResponse, error)
GetOrderInputAndOutputInfo(context.Context, *GetOrderInputAndOutputInfoRequest) (*GetOrderInputAndOutputInfoResponse, error)
OrderProductOutput(context.Context, *OrderProductOutputRequest) (*OrderProductOutputResponse, error)
+ GetOutputOperationInfo(context.Context, *GetOutputOperationInfoRequest) (*GetOutputOperationInfoResponse, error)
mustEmbedUnimplementedProductInventoryServiceServer()
}
@@ -120,6 +132,9 @@
}
func (UnimplementedProductInventoryServiceServer) OrderProductOutput(context.Context, *OrderProductOutputRequest) (*OrderProductOutputResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method OrderProductOutput not implemented")
+}
+func (UnimplementedProductInventoryServiceServer) GetOutputOperationInfo(context.Context, *GetOutputOperationInfoRequest) (*GetOutputOperationInfoResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetOutputOperationInfo not implemented")
}
func (UnimplementedProductInventoryServiceServer) mustEmbedUnimplementedProductInventoryServiceServer() {
}
@@ -225,6 +240,24 @@
return interceptor(ctx, in, info, handler)
}
+func _ProductInventoryService_GetOutputOperationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetOutputOperationInfoRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProductInventoryServiceServer).GetOutputOperationInfo(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProductInventoryService_GetOutputOperationInfo_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProductInventoryServiceServer).GetOutputOperationInfo(ctx, req.(*GetOutputOperationInfoRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
// ProductInventoryService_ServiceDesc is the grpc.ServiceDesc for ProductInventoryService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -252,6 +285,10 @@
MethodName: "OrderProductOutput",
Handler: _ProductInventoryService_OrderProductOutput_Handler,
},
+ {
+ MethodName: "GetOutputOperationInfo",
+ Handler: _ProductInventoryService_GetOutputOperationInfo_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "product_inventory.proto",
--
Gitblit v1.8.0