| | |
| | | const _ = grpc.SupportPackageIsVersion7 |
| | | |
| | | const ( |
| | | ProductInventoryService_CreateOperation_FullMethodName = "/productInventoryService/CreateOperation" |
| | | ProductInventoryService_GetInventoryProductInfo_FullMethodName = "/productInventoryService/GetInventoryProductInfo" |
| | | ProductInventoryService_UpdateSalesDetailStatus_FullMethodName = "/productInventoryService/UpdateSalesDetailStatus" |
| | | ProductInventoryService_CreateOperation_FullMethodName = "/productInventoryService/CreateOperation" |
| | | ProductInventoryService_GetInventoryProductInfo_FullMethodName = "/productInventoryService/GetInventoryProductInfo" |
| | | ProductInventoryService_UpdateSalesDetailStatus_FullMethodName = "/productInventoryService/UpdateSalesDetailStatus" |
| | | ProductInventoryService_GetOrderInputAndOutputInfo_FullMethodName = "/productInventoryService/GetOrderInputAndOutputInfo" |
| | | ) |
| | | |
| | | // ProductInventoryServiceClient is the client API for ProductInventoryService service. |
| | |
| | | CreateOperation(ctx context.Context, in *CreateOperationRequest, opts ...grpc.CallOption) (*CreateOperationResponse, error) |
| | | GetInventoryProductInfo(ctx context.Context, in *GetInventoryProductInfoRequest, opts ...grpc.CallOption) (*GetInventoryProductInfoResponse, error) |
| | | UpdateSalesDetailStatus(ctx context.Context, in *UpdateSalesDetailStatusRequest, opts ...grpc.CallOption) (*UpdateSalesDetailStatusResponse, error) |
| | | GetOrderInputAndOutputInfo(ctx context.Context, in *GetOrderInputAndOutputInfoRequest, opts ...grpc.CallOption) (*GetOrderInputAndOutputInfoResponse, error) |
| | | } |
| | | |
| | | type productInventoryServiceClient struct { |
| | |
| | | return out, nil |
| | | } |
| | | |
| | | 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...) |
| | | 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 |
| | |
| | | CreateOperation(context.Context, *CreateOperationRequest) (*CreateOperationResponse, error) |
| | | GetInventoryProductInfo(context.Context, *GetInventoryProductInfoRequest) (*GetInventoryProductInfoResponse, error) |
| | | UpdateSalesDetailStatus(context.Context, *UpdateSalesDetailStatusRequest) (*UpdateSalesDetailStatusResponse, error) |
| | | GetOrderInputAndOutputInfo(context.Context, *GetOrderInputAndOutputInfoRequest) (*GetOrderInputAndOutputInfoResponse, error) |
| | | mustEmbedUnimplementedProductInventoryServiceServer() |
| | | } |
| | | |
| | |
| | | } |
| | | func (UnimplementedProductInventoryServiceServer) UpdateSalesDetailStatus(context.Context, *UpdateSalesDetailStatusRequest) (*UpdateSalesDetailStatusResponse, error) { |
| | | return nil, status.Errorf(codes.Unimplemented, "method UpdateSalesDetailStatus not implemented") |
| | | } |
| | | func (UnimplementedProductInventoryServiceServer) GetOrderInputAndOutputInfo(context.Context, *GetOrderInputAndOutputInfoRequest) (*GetOrderInputAndOutputInfoResponse, error) { |
| | | return nil, status.Errorf(codes.Unimplemented, "method GetOrderInputAndOutputInfo not implemented") |
| | | } |
| | | func (UnimplementedProductInventoryServiceServer) mustEmbedUnimplementedProductInventoryServiceServer() { |
| | | } |
| | |
| | | return interceptor(ctx, in, info, handler) |
| | | } |
| | | |
| | | func _ProductInventoryService_GetOrderInputAndOutputInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| | | in := new(GetOrderInputAndOutputInfoRequest) |
| | | if err := dec(in); err != nil { |
| | | return nil, err |
| | | } |
| | | if interceptor == nil { |
| | | return srv.(ProductInventoryServiceServer).GetOrderInputAndOutputInfo(ctx, in) |
| | | } |
| | | info := &grpc.UnaryServerInfo{ |
| | | Server: srv, |
| | | FullMethod: ProductInventoryService_GetOrderInputAndOutputInfo_FullMethodName, |
| | | } |
| | | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| | | return srv.(ProductInventoryServiceServer).GetOrderInputAndOutputInfo(ctx, req.(*GetOrderInputAndOutputInfoRequest)) |
| | | } |
| | | 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) |
| | |
| | | MethodName: "UpdateSalesDetailStatus", |
| | | Handler: _ProductInventoryService_UpdateSalesDetailStatus_Handler, |
| | | }, |
| | | { |
| | | MethodName: "GetOrderInputAndOutputInfo", |
| | | Handler: _ProductInventoryService_GetOrderInputAndOutputInfo_Handler, |
| | | }, |
| | | }, |
| | | Streams: []grpc.StreamDesc{}, |
| | | Metadata: "product_inventory.proto", |