jiangshuai
2023-12-08 27be7a2c517404e4622470edf7b83b13129220ff
proto/inventory_order/inventory_order_grpc.pb.go
@@ -19,6 +19,8 @@
// 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.
type InventoryOrderServiceClient interface {
   CreateNewOrder(ctx context.Context, in *CreateNewOrderRequest, opts ...grpc.CallOption) (*CreateNewOrderResponse, error)
   CreateOperationList(ctx context.Context, in *CreateOperationListRequest, opts ...grpc.CallOption) (*CreateOperationListResponse, error)
   UpdateMaterialApplyStatus(ctx context.Context, in *UpdateMaterialApplyStatusRequest, opts ...grpc.CallOption) (*UpdateMaterialApplyStatusResponse, error)
}
type inventoryOrderServiceClient struct {
@@ -38,11 +40,31 @@
   return out, nil
}
func (c *inventoryOrderServiceClient) CreateOperationList(ctx context.Context, in *CreateOperationListRequest, opts ...grpc.CallOption) (*CreateOperationListResponse, error) {
   out := new(CreateOperationListResponse)
   err := c.cc.Invoke(ctx, "/inventoryOrderService/CreateOperationList", in, out, opts...)
   if err != nil {
      return nil, err
   }
   return out, nil
}
func (c *inventoryOrderServiceClient) UpdateMaterialApplyStatus(ctx context.Context, in *UpdateMaterialApplyStatusRequest, opts ...grpc.CallOption) (*UpdateMaterialApplyStatusResponse, error) {
   out := new(UpdateMaterialApplyStatusResponse)
   err := c.cc.Invoke(ctx, "/inventoryOrderService/UpdateMaterialApplyStatus", in, out, opts...)
   if err != nil {
      return nil, err
   }
   return out, nil
}
// InventoryOrderServiceServer is the server API for InventoryOrderService service.
// All implementations must embed UnimplementedInventoryOrderServiceServer
// for forward compatibility
type InventoryOrderServiceServer interface {
   CreateNewOrder(context.Context, *CreateNewOrderRequest) (*CreateNewOrderResponse, error)
   CreateOperationList(context.Context, *CreateOperationListRequest) (*CreateOperationListResponse, error)
   UpdateMaterialApplyStatus(context.Context, *UpdateMaterialApplyStatusRequest) (*UpdateMaterialApplyStatusResponse, error)
   mustEmbedUnimplementedInventoryOrderServiceServer()
}
@@ -52,6 +74,12 @@
func (UnimplementedInventoryOrderServiceServer) CreateNewOrder(context.Context, *CreateNewOrderRequest) (*CreateNewOrderResponse, error) {
   return nil, status.Errorf(codes.Unimplemented, "method CreateNewOrder not implemented")
}
func (UnimplementedInventoryOrderServiceServer) CreateOperationList(context.Context, *CreateOperationListRequest) (*CreateOperationListResponse, error) {
   return nil, status.Errorf(codes.Unimplemented, "method CreateOperationList not implemented")
}
func (UnimplementedInventoryOrderServiceServer) UpdateMaterialApplyStatus(context.Context, *UpdateMaterialApplyStatusRequest) (*UpdateMaterialApplyStatusResponse, error) {
   return nil, status.Errorf(codes.Unimplemented, "method UpdateMaterialApplyStatus not implemented")
}
func (UnimplementedInventoryOrderServiceServer) mustEmbedUnimplementedInventoryOrderServiceServer() {}
@@ -84,6 +112,42 @@
   return interceptor(ctx, in, info, handler)
}
func _InventoryOrderService_CreateOperationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   in := new(CreateOperationListRequest)
   if err := dec(in); err != nil {
      return nil, err
   }
   if interceptor == nil {
      return srv.(InventoryOrderServiceServer).CreateOperationList(ctx, in)
   }
   info := &grpc.UnaryServerInfo{
      Server:     srv,
      FullMethod: "/inventoryOrderService/CreateOperationList",
   }
   handler := func(ctx context.Context, req interface{}) (interface{}, error) {
      return srv.(InventoryOrderServiceServer).CreateOperationList(ctx, req.(*CreateOperationListRequest))
   }
   return interceptor(ctx, in, info, handler)
}
func _InventoryOrderService_UpdateMaterialApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   in := new(UpdateMaterialApplyStatusRequest)
   if err := dec(in); err != nil {
      return nil, err
   }
   if interceptor == nil {
      return srv.(InventoryOrderServiceServer).UpdateMaterialApplyStatus(ctx, in)
   }
   info := &grpc.UnaryServerInfo{
      Server:     srv,
      FullMethod: "/inventoryOrderService/UpdateMaterialApplyStatus",
   }
   handler := func(ctx context.Context, req interface{}) (interface{}, error) {
      return srv.(InventoryOrderServiceServer).UpdateMaterialApplyStatus(ctx, req.(*UpdateMaterialApplyStatusRequest))
   }
   return interceptor(ctx, in, info, handler)
}
// InventoryOrderService_ServiceDesc is the grpc.ServiceDesc for InventoryOrderService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -95,6 +159,14 @@
         MethodName: "CreateNewOrder",
         Handler:    _InventoryOrderService_CreateNewOrder_Handler,
      },
      {
         MethodName: "CreateOperationList",
         Handler:    _InventoryOrderService_CreateOperationList_Handler,
      },
      {
         MethodName: "UpdateMaterialApplyStatus",
         Handler:    _InventoryOrderService_UpdateMaterialApplyStatus_Handler,
      },
   },
   Streams:  []grpc.StreamDesc{},
   Metadata: "inventory_order.proto",