liujiandao
2024-03-14 c28ff1e6df57900a5d2fced3becae8ddc3313608
proto/purchase_wms/purchase_wms_grpc.pb.go
@@ -26,6 +26,7 @@
   ExistSupplier(ctx context.Context, in *ExistSupplierRequest, opts ...grpc.CallOption) (*ExistSupplierResponse, error)
   SrmGetWarehouseInfo(ctx context.Context, in *SrmGetWarehouseInfoRequest, opts ...grpc.CallOption) (*SrmGetWarehouseInfoResponse, error)
   SrmGetOperationInfo(ctx context.Context, in *SrmGetOperationInfoRequest, opts ...grpc.CallOption) (*SrmGetOperationInfoResponse, error)
   CreatePurchaseByAps(ctx context.Context, in *CreatePurchaseByApsRequest, opts ...grpc.CallOption) (*CreatePurchaseByWmsResponse, error)
}
type purchaseServiceClient struct {
@@ -108,6 +109,15 @@
   return out, nil
}
func (c *purchaseServiceClient) CreatePurchaseByAps(ctx context.Context, in *CreatePurchaseByApsRequest, opts ...grpc.CallOption) (*CreatePurchaseByWmsResponse, error) {
   out := new(CreatePurchaseByWmsResponse)
   err := c.cc.Invoke(ctx, "/PurchaseService/CreatePurchaseByAps", in, out, opts...)
   if err != nil {
      return nil, err
   }
   return out, nil
}
// PurchaseServiceServer is the server API for PurchaseService service.
// All implementations must embed UnimplementedPurchaseServiceServer
// for forward compatibility
@@ -120,6 +130,7 @@
   ExistSupplier(context.Context, *ExistSupplierRequest) (*ExistSupplierResponse, error)
   SrmGetWarehouseInfo(context.Context, *SrmGetWarehouseInfoRequest) (*SrmGetWarehouseInfoResponse, error)
   SrmGetOperationInfo(context.Context, *SrmGetOperationInfoRequest) (*SrmGetOperationInfoResponse, error)
   CreatePurchaseByAps(context.Context, *CreatePurchaseByApsRequest) (*CreatePurchaseByWmsResponse, error)
   mustEmbedUnimplementedPurchaseServiceServer()
}
@@ -150,6 +161,9 @@
}
func (UnimplementedPurchaseServiceServer) SrmGetOperationInfo(context.Context, *SrmGetOperationInfoRequest) (*SrmGetOperationInfoResponse, error) {
   return nil, status.Errorf(codes.Unimplemented, "method SrmGetOperationInfo not implemented")
}
func (UnimplementedPurchaseServiceServer) CreatePurchaseByAps(context.Context, *CreatePurchaseByApsRequest) (*CreatePurchaseByWmsResponse, error) {
   return nil, status.Errorf(codes.Unimplemented, "method CreatePurchaseByAps not implemented")
}
func (UnimplementedPurchaseServiceServer) mustEmbedUnimplementedPurchaseServiceServer() {}
@@ -308,6 +322,24 @@
   return interceptor(ctx, in, info, handler)
}
func _PurchaseService_CreatePurchaseByAps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   in := new(CreatePurchaseByApsRequest)
   if err := dec(in); err != nil {
      return nil, err
   }
   if interceptor == nil {
      return srv.(PurchaseServiceServer).CreatePurchaseByAps(ctx, in)
   }
   info := &grpc.UnaryServerInfo{
      Server:     srv,
      FullMethod: "/PurchaseService/CreatePurchaseByAps",
   }
   handler := func(ctx context.Context, req interface{}) (interface{}, error) {
      return srv.(PurchaseServiceServer).CreatePurchaseByAps(ctx, req.(*CreatePurchaseByApsRequest))
   }
   return interceptor(ctx, in, info, handler)
}
// PurchaseService_ServiceDesc is the grpc.ServiceDesc for PurchaseService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -347,6 +379,10 @@
         MethodName: "SrmGetOperationInfo",
         Handler:    _PurchaseService_SrmGetOperationInfo_Handler,
      },
      {
         MethodName: "CreatePurchaseByAps",
         Handler:    _PurchaseService_CreatePurchaseByAps_Handler,
      },
   },
   Streams:  []grpc.StreamDesc{},
   Metadata: "purchase_wms.proto",