From 952854aaaefaca423c0b87144203551809cb8bdc Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 30 三月 2024 17:29:41 +0800 Subject: [PATCH] crm获取发货数量 --- proto/product_inventory/product_inventory_grpc.pb.go | 68 +++++++++++++++++++++++----------- 1 files changed, 46 insertions(+), 22 deletions(-) diff --git a/proto/product_inventory/product_inventory_grpc.pb.go b/proto/product_inventory/product_inventory_grpc.pb.go index f2bc889..5823631 100644 --- a/proto/product_inventory/product_inventory_grpc.pb.go +++ b/proto/product_inventory/product_inventory_grpc.pb.go @@ -1,8 +1,4 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.19.0 -// source: product_inventory.proto package product_inventory @@ -18,14 +14,6 @@ // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - ProductInventoryService_CreateOperation_FullMethodName = "/productInventoryService/CreateOperation" - ProductInventoryService_GetInventoryProductInfo_FullMethodName = "/productInventoryService/GetInventoryProductInfo" - ProductInventoryService_UpdateSalesDetailStatus_FullMethodName = "/productInventoryService/UpdateSalesDetailStatus" - ProductInventoryService_GetOrderInputAndOutputInfo_FullMethodName = "/productInventoryService/GetOrderInputAndOutputInfo" - ProductInventoryService_OrderProductOutput_FullMethodName = "/productInventoryService/OrderProductOutput" -) - // ProductInventoryServiceClient is the client API for ProductInventoryService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -35,6 +23,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 { @@ -47,7 +36,7 @@ func (c *productInventoryServiceClient) CreateOperation(ctx context.Context, in *CreateOperationRequest, opts ...grpc.CallOption) (*CreateOperationResponse, error) { out := new(CreateOperationResponse) - err := c.cc.Invoke(ctx, ProductInventoryService_CreateOperation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/productInventoryService/CreateOperation", in, out, opts...) if err != nil { return nil, err } @@ -56,7 +45,7 @@ func (c *productInventoryServiceClient) GetInventoryProductInfo(ctx context.Context, in *GetInventoryProductInfoRequest, opts ...grpc.CallOption) (*GetInventoryProductInfoResponse, error) { out := new(GetInventoryProductInfoResponse) - err := c.cc.Invoke(ctx, ProductInventoryService_GetInventoryProductInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/productInventoryService/GetInventoryProductInfo", in, out, opts...) if err != nil { return nil, err } @@ -65,7 +54,7 @@ func (c *productInventoryServiceClient) UpdateSalesDetailStatus(ctx context.Context, in *UpdateSalesDetailStatusRequest, opts ...grpc.CallOption) (*UpdateSalesDetailStatusResponse, error) { out := new(UpdateSalesDetailStatusResponse) - err := c.cc.Invoke(ctx, ProductInventoryService_UpdateSalesDetailStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/productInventoryService/UpdateSalesDetailStatus", in, out, opts...) if err != nil { return nil, err } @@ -74,7 +63,7 @@ func (c *productInventoryServiceClient) GetOrderInputAndOutputInfo(ctx context.Context, in *GetOrderInputAndOutputInfoRequest, opts ...grpc.CallOption) (*GetOrderInputAndOutputInfoResponse, error) { out := new(GetOrderInputAndOutputInfoResponse) - err := c.cc.Invoke(ctx, ProductInventoryService_GetOrderInputAndOutputInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/productInventoryService/GetOrderInputAndOutputInfo", in, out, opts...) if err != nil { return nil, err } @@ -83,7 +72,16 @@ func (c *productInventoryServiceClient) OrderProductOutput(ctx context.Context, in *OrderProductOutputRequest, opts ...grpc.CallOption) (*OrderProductOutputResponse, error) { out := new(OrderProductOutputResponse) - err := c.cc.Invoke(ctx, ProductInventoryService_OrderProductOutput_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/productInventoryService/OrderProductOutput", in, out, opts...) + if err != nil { + return nil, err + } + 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", in, out, opts...) if err != nil { return nil, err } @@ -99,6 +97,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 +119,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() { } @@ -145,7 +147,7 @@ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ProductInventoryService_CreateOperation_FullMethodName, + FullMethod: "/productInventoryService/CreateOperation", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProductInventoryServiceServer).CreateOperation(ctx, req.(*CreateOperationRequest)) @@ -163,7 +165,7 @@ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ProductInventoryService_GetInventoryProductInfo_FullMethodName, + FullMethod: "/productInventoryService/GetInventoryProductInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProductInventoryServiceServer).GetInventoryProductInfo(ctx, req.(*GetInventoryProductInfoRequest)) @@ -181,7 +183,7 @@ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ProductInventoryService_UpdateSalesDetailStatus_FullMethodName, + FullMethod: "/productInventoryService/UpdateSalesDetailStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProductInventoryServiceServer).UpdateSalesDetailStatus(ctx, req.(*UpdateSalesDetailStatusRequest)) @@ -199,7 +201,7 @@ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ProductInventoryService_GetOrderInputAndOutputInfo_FullMethodName, + FullMethod: "/productInventoryService/GetOrderInputAndOutputInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProductInventoryServiceServer).GetOrderInputAndOutputInfo(ctx, req.(*GetOrderInputAndOutputInfoRequest)) @@ -217,10 +219,28 @@ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ProductInventoryService_OrderProductOutput_FullMethodName, + FullMethod: "/productInventoryService/OrderProductOutput", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProductInventoryServiceServer).OrderProductOutput(ctx, req.(*OrderProductOutputRequest)) + } + 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", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductInventoryServiceServer).GetOutputOperationInfo(ctx, req.(*GetOutputOperationInfoRequest)) } return interceptor(ctx, in, info, handler) } @@ -252,6 +272,10 @@ MethodName: "OrderProductOutput", Handler: _ProductInventoryService_OrderProductOutput_Handler, }, + { + MethodName: "GetOutputOperationInfo", + Handler: _ProductInventoryService_GetOutputOperationInfo_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "product_inventory.proto", -- Gitblit v1.8.0