From 8397fb4c46d08d0332300f9fde1e7b3eb04845fe Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 23 三月 2024 14:00:12 +0800 Subject: [PATCH] srm查询入库单 --- proto/purchase_wms/purchase_wms_grpc.pb.go | 252 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 252 insertions(+), 0 deletions(-) diff --git a/proto/purchase_wms/purchase_wms_grpc.pb.go b/proto/purchase_wms/purchase_wms_grpc.pb.go index 4edcf55..1caf67d 100644 --- a/proto/purchase_wms/purchase_wms_grpc.pb.go +++ b/proto/purchase_wms/purchase_wms_grpc.pb.go @@ -20,6 +20,13 @@ type PurchaseServiceClient interface { PurchaseToWms(ctx context.Context, in *PurchaseToWmsRequest, opts ...grpc.CallOption) (*PurchaseToWmsResponse, error) UpdatePurchaseStatus(ctx context.Context, in *UpdatePurchaseStatusRequest, opts ...grpc.CallOption) (*UpdatePurchaseStatusResponse, error) + GetSupplierListByProductId(ctx context.Context, in *GetSupplierListByProductIdRequest, opts ...grpc.CallOption) (*GetSupplierListByProductIdResponse, error) + 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) + CreatePurchaseByAps(ctx context.Context, in *CreatePurchaseByApsRequest, opts ...grpc.CallOption) (*CreatePurchaseByWmsResponse, error) } type purchaseServiceClient struct { @@ -48,12 +55,82 @@ return out, nil } +func (c *purchaseServiceClient) GetSupplierListByProductId(ctx context.Context, in *GetSupplierListByProductIdRequest, opts ...grpc.CallOption) (*GetSupplierListByProductIdResponse, error) { + out := new(GetSupplierListByProductIdResponse) + err := c.cc.Invoke(ctx, "/PurchaseService/GetSupplierListByProductId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *purchaseServiceClient) CreatePurchaseByWms(ctx context.Context, in *CreatePurchaseByWmsRequest, opts ...grpc.CallOption) (*CreatePurchaseByWmsResponse, error) { + out := new(CreatePurchaseByWmsResponse) + err := c.cc.Invoke(ctx, "/PurchaseService/CreatePurchaseByWms", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *purchaseServiceClient) GetPurchaseInfo(ctx context.Context, in *GetPurchaseInfoRequest, opts ...grpc.CallOption) (*GetPurchaseInfoResponse, error) { + out := new(GetPurchaseInfoResponse) + err := c.cc.Invoke(ctx, "/PurchaseService/GetPurchaseInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *purchaseServiceClient) ExistSupplier(ctx context.Context, in *ExistSupplierRequest, opts ...grpc.CallOption) (*ExistSupplierResponse, error) { + out := new(ExistSupplierResponse) + err := c.cc.Invoke(ctx, "/PurchaseService/ExistSupplier", in, out, opts...) + if err != nil { + return nil, err + } + 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 +} + +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 type PurchaseServiceServer interface { PurchaseToWms(context.Context, *PurchaseToWmsRequest) (*PurchaseToWmsResponse, error) UpdatePurchaseStatus(context.Context, *UpdatePurchaseStatusRequest) (*UpdatePurchaseStatusResponse, error) + GetSupplierListByProductId(context.Context, *GetSupplierListByProductIdRequest) (*GetSupplierListByProductIdResponse, error) + 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) + CreatePurchaseByAps(context.Context, *CreatePurchaseByApsRequest) (*CreatePurchaseByWmsResponse, error) mustEmbedUnimplementedPurchaseServiceServer() } @@ -66,6 +143,27 @@ } func (UnimplementedPurchaseServiceServer) UpdatePurchaseStatus(context.Context, *UpdatePurchaseStatusRequest) (*UpdatePurchaseStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePurchaseStatus not implemented") +} +func (UnimplementedPurchaseServiceServer) GetSupplierListByProductId(context.Context, *GetSupplierListByProductIdRequest) (*GetSupplierListByProductIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSupplierListByProductId not implemented") +} +func (UnimplementedPurchaseServiceServer) CreatePurchaseByWms(context.Context, *CreatePurchaseByWmsRequest) (*CreatePurchaseByWmsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePurchaseByWms not implemented") +} +func (UnimplementedPurchaseServiceServer) GetPurchaseInfo(context.Context, *GetPurchaseInfoRequest) (*GetPurchaseInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPurchaseInfo not implemented") +} +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) CreatePurchaseByAps(context.Context, *CreatePurchaseByApsRequest) (*CreatePurchaseByWmsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePurchaseByAps not implemented") } func (UnimplementedPurchaseServiceServer) mustEmbedUnimplementedPurchaseServiceServer() {} @@ -116,6 +214,132 @@ return interceptor(ctx, in, info, handler) } +func _PurchaseService_GetSupplierListByProductId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSupplierListByProductIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PurchaseServiceServer).GetSupplierListByProductId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/PurchaseService/GetSupplierListByProductId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PurchaseServiceServer).GetSupplierListByProductId(ctx, req.(*GetSupplierListByProductIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PurchaseService_CreatePurchaseByWms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreatePurchaseByWmsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PurchaseServiceServer).CreatePurchaseByWms(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/PurchaseService/CreatePurchaseByWms", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PurchaseServiceServer).CreatePurchaseByWms(ctx, req.(*CreatePurchaseByWmsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PurchaseService_GetPurchaseInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPurchaseInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PurchaseServiceServer).GetPurchaseInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/PurchaseService/GetPurchaseInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PurchaseServiceServer).GetPurchaseInfo(ctx, req.(*GetPurchaseInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PurchaseService_ExistSupplier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExistSupplierRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PurchaseServiceServer).ExistSupplier(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/PurchaseService/ExistSupplier", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PurchaseServiceServer).ExistSupplier(ctx, req.(*ExistSupplierRequest)) + } + 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) +} + +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) @@ -131,6 +355,34 @@ MethodName: "UpdatePurchaseStatus", Handler: _PurchaseService_UpdatePurchaseStatus_Handler, }, + { + MethodName: "GetSupplierListByProductId", + Handler: _PurchaseService_GetSupplierListByProductId_Handler, + }, + { + MethodName: "CreatePurchaseByWms", + Handler: _PurchaseService_CreatePurchaseByWms_Handler, + }, + { + MethodName: "GetPurchaseInfo", + Handler: _PurchaseService_GetPurchaseInfo_Handler, + }, + { + MethodName: "ExistSupplier", + Handler: _PurchaseService_ExistSupplier_Handler, + }, + { + MethodName: "SrmGetWarehouseInfo", + Handler: _PurchaseService_SrmGetWarehouseInfo_Handler, + }, + { + MethodName: "SrmGetOperationInfo", + Handler: _PurchaseService_SrmGetOperationInfo_Handler, + }, + { + MethodName: "CreatePurchaseByAps", + Handler: _PurchaseService_CreatePurchaseByAps_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "purchase_wms.proto", -- Gitblit v1.8.0