| | |
| | | CreatePurchaseByWms(ctx context.Context, in *CreatePurchaseByWmsRequest, opts ...grpc.CallOption) (*CreatePurchaseByWmsResponse, error) |
| | | GetPurchaseInfo(ctx context.Context, in *GetPurchaseInfoRequest, opts ...grpc.CallOption) (*GetPurchaseInfoResponse, error) |
| | | 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) |
| | | } |
| | | |
| | | type purchaseServiceClient struct { |
| | |
| | | return out, nil |
| | | } |
| | | |
| | | func (c *purchaseServiceClient) SrmGetWarehouseInfo(ctx context.Context, in *SrmGetWarehouseInfoRequest, opts ...grpc.CallOption) (*SrmGetWarehouseInfoResponse, error) { |
| | | out := new(SrmGetWarehouseInfoResponse) |
| | | err := c.cc.Invoke(ctx, "/PurchaseService/SrmGetWarehouseInfo", in, out, opts...) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | | return out, nil |
| | | } |
| | | |
| | | func (c *purchaseServiceClient) SrmGetOperationInfo(ctx context.Context, in *SrmGetOperationInfoRequest, opts ...grpc.CallOption) (*SrmGetOperationInfoResponse, error) { |
| | | out := new(SrmGetOperationInfoResponse) |
| | | err := c.cc.Invoke(ctx, "/PurchaseService/SrmGetOperationInfo", 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 |
| | |
| | | CreatePurchaseByWms(context.Context, *CreatePurchaseByWmsRequest) (*CreatePurchaseByWmsResponse, error) |
| | | GetPurchaseInfo(context.Context, *GetPurchaseInfoRequest) (*GetPurchaseInfoResponse, error) |
| | | ExistSupplier(context.Context, *ExistSupplierRequest) (*ExistSupplierResponse, error) |
| | | SrmGetWarehouseInfo(context.Context, *SrmGetWarehouseInfoRequest) (*SrmGetWarehouseInfoResponse, error) |
| | | SrmGetOperationInfo(context.Context, *SrmGetOperationInfoRequest) (*SrmGetOperationInfoResponse, error) |
| | | mustEmbedUnimplementedPurchaseServiceServer() |
| | | } |
| | | |
| | |
| | | } |
| | | func (UnimplementedPurchaseServiceServer) ExistSupplier(context.Context, *ExistSupplierRequest) (*ExistSupplierResponse, error) { |
| | | return nil, status.Errorf(codes.Unimplemented, "method ExistSupplier not implemented") |
| | | } |
| | | func (UnimplementedPurchaseServiceServer) SrmGetWarehouseInfo(context.Context, *SrmGetWarehouseInfoRequest) (*SrmGetWarehouseInfoResponse, error) { |
| | | return nil, status.Errorf(codes.Unimplemented, "method SrmGetWarehouseInfo not implemented") |
| | | } |
| | | func (UnimplementedPurchaseServiceServer) SrmGetOperationInfo(context.Context, *SrmGetOperationInfoRequest) (*SrmGetOperationInfoResponse, error) { |
| | | return nil, status.Errorf(codes.Unimplemented, "method SrmGetOperationInfo not implemented") |
| | | } |
| | | func (UnimplementedPurchaseServiceServer) mustEmbedUnimplementedPurchaseServiceServer() {} |
| | | |
| | |
| | | return interceptor(ctx, in, info, handler) |
| | | } |
| | | |
| | | func _PurchaseService_SrmGetWarehouseInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| | | in := new(SrmGetWarehouseInfoRequest) |
| | | if err := dec(in); err != nil { |
| | | return nil, err |
| | | } |
| | | if interceptor == nil { |
| | | return srv.(PurchaseServiceServer).SrmGetWarehouseInfo(ctx, in) |
| | | } |
| | | info := &grpc.UnaryServerInfo{ |
| | | Server: srv, |
| | | FullMethod: "/PurchaseService/SrmGetWarehouseInfo", |
| | | } |
| | | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| | | return srv.(PurchaseServiceServer).SrmGetWarehouseInfo(ctx, req.(*SrmGetWarehouseInfoRequest)) |
| | | } |
| | | return interceptor(ctx, in, info, handler) |
| | | } |
| | | |
| | | func _PurchaseService_SrmGetOperationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| | | in := new(SrmGetOperationInfoRequest) |
| | | if err := dec(in); err != nil { |
| | | return nil, err |
| | | } |
| | | if interceptor == nil { |
| | | return srv.(PurchaseServiceServer).SrmGetOperationInfo(ctx, in) |
| | | } |
| | | info := &grpc.UnaryServerInfo{ |
| | | Server: srv, |
| | | FullMethod: "/PurchaseService/SrmGetOperationInfo", |
| | | } |
| | | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| | | return srv.(PurchaseServiceServer).SrmGetOperationInfo(ctx, req.(*SrmGetOperationInfoRequest)) |
| | | } |
| | | 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) |
| | |
| | | MethodName: "ExistSupplier", |
| | | Handler: _PurchaseService_ExistSupplier_Handler, |
| | | }, |
| | | { |
| | | MethodName: "SrmGetWarehouseInfo", |
| | | Handler: _PurchaseService_SrmGetWarehouseInfo_Handler, |
| | | }, |
| | | { |
| | | MethodName: "SrmGetOperationInfo", |
| | | Handler: _PurchaseService_SrmGetOperationInfo_Handler, |
| | | }, |
| | | }, |
| | | Streams: []grpc.StreamDesc{}, |
| | | Metadata: "purchase_wms.proto", |