liujiandao
2023-12-01 8a439141c04ee485d250f5a5bc3cead74f3a0156
proto/inventory_order/inventory_order_grpc.pb.go
@@ -20,6 +20,7 @@
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 {
@@ -48,12 +49,22 @@
   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()
}
@@ -66,6 +77,9 @@
}
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() {}
@@ -116,6 +130,24 @@
   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)
@@ -131,6 +163,10 @@
         MethodName: "CreateOperationList",
         Handler:    _InventoryOrderService_CreateOperationList_Handler,
      },
      {
         MethodName: "UpdateMaterialApplyStatus",
         Handler:    _InventoryOrderService_UpdateMaterialApplyStatus_Handler,
      },
   },
   Streams:  []grpc.StreamDesc{},
   Metadata: "inventory_order.proto",