| | |
| | | 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 { |
| | |
| | | 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 |
| | |
| | | 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() |
| | | } |
| | | |
| | |
| | | } |
| | | 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() {} |
| | | |
| | |
| | | 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) |
| | |
| | | MethodName: "SrmGetOperationInfo", |
| | | Handler: _PurchaseService_SrmGetOperationInfo_Handler, |
| | | }, |
| | | { |
| | | MethodName: "CreatePurchaseByAps", |
| | | Handler: _PurchaseService_CreatePurchaseByAps_Handler, |
| | | }, |
| | | }, |
| | | Streams: []grpc.StreamDesc{}, |
| | | Metadata: "purchase_wms.proto", |