728 lines
29 KiB
Go
728 lines
29 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
// - protoc v3.20.3
|
|
// source: rpc/inventory/inventory.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
// InventoryServiceClient is the client API for InventoryService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type InventoryServiceClient interface {
|
|
// Product
|
|
CreateProduct(ctx context.Context, in *CreateProductReq, opts ...grpc.CallOption) (*IdResp, error)
|
|
UpdateProduct(ctx context.Context, in *UpdateProductReq, opts ...grpc.CallOption) (*Empty, error)
|
|
DeleteProduct(ctx context.Context, in *DeleteProductReq, opts ...grpc.CallOption) (*Empty, error)
|
|
GetProduct(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*ProductInfo, error)
|
|
ListProduct(ctx context.Context, in *ListProductReq, opts ...grpc.CallOption) (*ListProductResp, error)
|
|
// Import
|
|
ImportProducts(ctx context.Context, in *ImportProductReq, opts ...grpc.CallOption) (*ImportProductResp, error)
|
|
ListImportLog(ctx context.Context, in *ListImportLogReq, opts ...grpc.CallOption) (*ListImportLogResp, error)
|
|
// Stock Statistics
|
|
GetStockSummary(ctx context.Context, in *StockSummaryReq, opts ...grpc.CallOption) (*StockSummaryResp, error)
|
|
GetStockGroup(ctx context.Context, in *StockGroupReq, opts ...grpc.CallOption) (*StockGroupResp, error)
|
|
// Stock Check
|
|
CreateStockCheck(ctx context.Context, in *CreateStockCheckReq, opts ...grpc.CallOption) (*IdResp, error)
|
|
UpdateStockCheck(ctx context.Context, in *UpdateStockCheckReq, opts ...grpc.CallOption) (*Empty, error)
|
|
ConfirmStockCheck(ctx context.Context, in *ConfirmStockCheckReq, opts ...grpc.CallOption) (*Empty, error)
|
|
GetStockCheck(ctx context.Context, in *GetStockCheckReq, opts ...grpc.CallOption) (*StockCheckInfo, error)
|
|
ListStockCheck(ctx context.Context, in *ListStockCheckReq, opts ...grpc.CallOption) (*ListStockCheckResp, error)
|
|
// Stock Adjust
|
|
CreateStockAdjust(ctx context.Context, in *CreateStockAdjustReq, opts ...grpc.CallOption) (*IdResp, error)
|
|
ApproveStockAdjust(ctx context.Context, in *ApproveStockAdjustReq, opts ...grpc.CallOption) (*Empty, error)
|
|
GetStockAdjust(ctx context.Context, in *GetStockAdjustReq, opts ...grpc.CallOption) (*StockAdjustInfo, error)
|
|
ListStockAdjust(ctx context.Context, in *ListStockAdjustReq, opts ...grpc.CallOption) (*ListStockAdjustResp, error)
|
|
}
|
|
|
|
type inventoryServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewInventoryServiceClient(cc grpc.ClientConnInterface) InventoryServiceClient {
|
|
return &inventoryServiceClient{cc}
|
|
}
|
|
|
|
func (c *inventoryServiceClient) CreateProduct(ctx context.Context, in *CreateProductReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
out := new(IdResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/CreateProduct", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) UpdateProduct(ctx context.Context, in *UpdateProductReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/UpdateProduct", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) DeleteProduct(ctx context.Context, in *DeleteProductReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/DeleteProduct", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) GetProduct(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*ProductInfo, error) {
|
|
out := new(ProductInfo)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/GetProduct", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ListProduct(ctx context.Context, in *ListProductReq, opts ...grpc.CallOption) (*ListProductResp, error) {
|
|
out := new(ListProductResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ListProduct", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ImportProducts(ctx context.Context, in *ImportProductReq, opts ...grpc.CallOption) (*ImportProductResp, error) {
|
|
out := new(ImportProductResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ImportProducts", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ListImportLog(ctx context.Context, in *ListImportLogReq, opts ...grpc.CallOption) (*ListImportLogResp, error) {
|
|
out := new(ListImportLogResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ListImportLog", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) GetStockSummary(ctx context.Context, in *StockSummaryReq, opts ...grpc.CallOption) (*StockSummaryResp, error) {
|
|
out := new(StockSummaryResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/GetStockSummary", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) GetStockGroup(ctx context.Context, in *StockGroupReq, opts ...grpc.CallOption) (*StockGroupResp, error) {
|
|
out := new(StockGroupResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/GetStockGroup", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) CreateStockCheck(ctx context.Context, in *CreateStockCheckReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
out := new(IdResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/CreateStockCheck", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) UpdateStockCheck(ctx context.Context, in *UpdateStockCheckReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/UpdateStockCheck", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ConfirmStockCheck(ctx context.Context, in *ConfirmStockCheckReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ConfirmStockCheck", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) GetStockCheck(ctx context.Context, in *GetStockCheckReq, opts ...grpc.CallOption) (*StockCheckInfo, error) {
|
|
out := new(StockCheckInfo)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/GetStockCheck", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ListStockCheck(ctx context.Context, in *ListStockCheckReq, opts ...grpc.CallOption) (*ListStockCheckResp, error) {
|
|
out := new(ListStockCheckResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ListStockCheck", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) CreateStockAdjust(ctx context.Context, in *CreateStockAdjustReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
out := new(IdResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/CreateStockAdjust", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ApproveStockAdjust(ctx context.Context, in *ApproveStockAdjustReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ApproveStockAdjust", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) GetStockAdjust(ctx context.Context, in *GetStockAdjustReq, opts ...grpc.CallOption) (*StockAdjustInfo, error) {
|
|
out := new(StockAdjustInfo)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/GetStockAdjust", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inventoryServiceClient) ListStockAdjust(ctx context.Context, in *ListStockAdjustReq, opts ...grpc.CallOption) (*ListStockAdjustResp, error) {
|
|
out := new(ListStockAdjustResp)
|
|
err := c.cc.Invoke(ctx, "/inventory.InventoryService/ListStockAdjust", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// InventoryServiceServer is the server API for InventoryService service.
|
|
// All implementations must embed UnimplementedInventoryServiceServer
|
|
// for forward compatibility
|
|
type InventoryServiceServer interface {
|
|
// Product
|
|
CreateProduct(context.Context, *CreateProductReq) (*IdResp, error)
|
|
UpdateProduct(context.Context, *UpdateProductReq) (*Empty, error)
|
|
DeleteProduct(context.Context, *DeleteProductReq) (*Empty, error)
|
|
GetProduct(context.Context, *GetProductReq) (*ProductInfo, error)
|
|
ListProduct(context.Context, *ListProductReq) (*ListProductResp, error)
|
|
// Import
|
|
ImportProducts(context.Context, *ImportProductReq) (*ImportProductResp, error)
|
|
ListImportLog(context.Context, *ListImportLogReq) (*ListImportLogResp, error)
|
|
// Stock Statistics
|
|
GetStockSummary(context.Context, *StockSummaryReq) (*StockSummaryResp, error)
|
|
GetStockGroup(context.Context, *StockGroupReq) (*StockGroupResp, error)
|
|
// Stock Check
|
|
CreateStockCheck(context.Context, *CreateStockCheckReq) (*IdResp, error)
|
|
UpdateStockCheck(context.Context, *UpdateStockCheckReq) (*Empty, error)
|
|
ConfirmStockCheck(context.Context, *ConfirmStockCheckReq) (*Empty, error)
|
|
GetStockCheck(context.Context, *GetStockCheckReq) (*StockCheckInfo, error)
|
|
ListStockCheck(context.Context, *ListStockCheckReq) (*ListStockCheckResp, error)
|
|
// Stock Adjust
|
|
CreateStockAdjust(context.Context, *CreateStockAdjustReq) (*IdResp, error)
|
|
ApproveStockAdjust(context.Context, *ApproveStockAdjustReq) (*Empty, error)
|
|
GetStockAdjust(context.Context, *GetStockAdjustReq) (*StockAdjustInfo, error)
|
|
ListStockAdjust(context.Context, *ListStockAdjustReq) (*ListStockAdjustResp, error)
|
|
mustEmbedUnimplementedInventoryServiceServer()
|
|
}
|
|
|
|
// UnimplementedInventoryServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedInventoryServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedInventoryServiceServer) CreateProduct(context.Context, *CreateProductReq) (*IdResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateProduct not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) UpdateProduct(context.Context, *UpdateProductReq) (*Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateProduct not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) DeleteProduct(context.Context, *DeleteProductReq) (*Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteProduct not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) GetProduct(context.Context, *GetProductReq) (*ProductInfo, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetProduct not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ListProduct(context.Context, *ListProductReq) (*ListProductResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListProduct not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ImportProducts(context.Context, *ImportProductReq) (*ImportProductResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ImportProducts not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ListImportLog(context.Context, *ListImportLogReq) (*ListImportLogResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListImportLog not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) GetStockSummary(context.Context, *StockSummaryReq) (*StockSummaryResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStockSummary not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) GetStockGroup(context.Context, *StockGroupReq) (*StockGroupResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStockGroup not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) CreateStockCheck(context.Context, *CreateStockCheckReq) (*IdResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateStockCheck not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) UpdateStockCheck(context.Context, *UpdateStockCheckReq) (*Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateStockCheck not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ConfirmStockCheck(context.Context, *ConfirmStockCheckReq) (*Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ConfirmStockCheck not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) GetStockCheck(context.Context, *GetStockCheckReq) (*StockCheckInfo, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStockCheck not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ListStockCheck(context.Context, *ListStockCheckReq) (*ListStockCheckResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListStockCheck not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) CreateStockAdjust(context.Context, *CreateStockAdjustReq) (*IdResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateStockAdjust not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ApproveStockAdjust(context.Context, *ApproveStockAdjustReq) (*Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ApproveStockAdjust not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) GetStockAdjust(context.Context, *GetStockAdjustReq) (*StockAdjustInfo, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStockAdjust not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) ListStockAdjust(context.Context, *ListStockAdjustReq) (*ListStockAdjustResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListStockAdjust not implemented")
|
|
}
|
|
func (UnimplementedInventoryServiceServer) mustEmbedUnimplementedInventoryServiceServer() {}
|
|
|
|
// UnsafeInventoryServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to InventoryServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeInventoryServiceServer interface {
|
|
mustEmbedUnimplementedInventoryServiceServer()
|
|
}
|
|
|
|
func RegisterInventoryServiceServer(s grpc.ServiceRegistrar, srv InventoryServiceServer) {
|
|
s.RegisterService(&InventoryService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _InventoryService_CreateProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateProductReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).CreateProduct(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/CreateProduct",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).CreateProduct(ctx, req.(*CreateProductReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_UpdateProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateProductReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).UpdateProduct(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/UpdateProduct",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).UpdateProduct(ctx, req.(*UpdateProductReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_DeleteProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteProductReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).DeleteProduct(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/DeleteProduct",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).DeleteProduct(ctx, req.(*DeleteProductReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_GetProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetProductReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).GetProduct(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/GetProduct",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).GetProduct(ctx, req.(*GetProductReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ListProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListProductReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ListProduct(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ListProduct",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ListProduct(ctx, req.(*ListProductReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ImportProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ImportProductReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ImportProducts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ImportProducts",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ImportProducts(ctx, req.(*ImportProductReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ListImportLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListImportLogReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ListImportLog(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ListImportLog",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ListImportLog(ctx, req.(*ListImportLogReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_GetStockSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StockSummaryReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).GetStockSummary(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/GetStockSummary",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).GetStockSummary(ctx, req.(*StockSummaryReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_GetStockGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StockGroupReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).GetStockGroup(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/GetStockGroup",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).GetStockGroup(ctx, req.(*StockGroupReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_CreateStockCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateStockCheckReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).CreateStockCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/CreateStockCheck",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).CreateStockCheck(ctx, req.(*CreateStockCheckReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_UpdateStockCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateStockCheckReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).UpdateStockCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/UpdateStockCheck",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).UpdateStockCheck(ctx, req.(*UpdateStockCheckReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ConfirmStockCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ConfirmStockCheckReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ConfirmStockCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ConfirmStockCheck",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ConfirmStockCheck(ctx, req.(*ConfirmStockCheckReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_GetStockCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetStockCheckReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).GetStockCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/GetStockCheck",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).GetStockCheck(ctx, req.(*GetStockCheckReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ListStockCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListStockCheckReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ListStockCheck(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ListStockCheck",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ListStockCheck(ctx, req.(*ListStockCheckReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_CreateStockAdjust_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateStockAdjustReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).CreateStockAdjust(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/CreateStockAdjust",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).CreateStockAdjust(ctx, req.(*CreateStockAdjustReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ApproveStockAdjust_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApproveStockAdjustReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ApproveStockAdjust(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ApproveStockAdjust",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ApproveStockAdjust(ctx, req.(*ApproveStockAdjustReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_GetStockAdjust_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetStockAdjustReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).GetStockAdjust(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/GetStockAdjust",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).GetStockAdjust(ctx, req.(*GetStockAdjustReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _InventoryService_ListStockAdjust_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListStockAdjustReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InventoryServiceServer).ListStockAdjust(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inventory.InventoryService/ListStockAdjust",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InventoryServiceServer).ListStockAdjust(ctx, req.(*ListStockAdjustReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// InventoryService_ServiceDesc is the grpc.ServiceDesc for InventoryService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var InventoryService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inventory.InventoryService",
|
|
HandlerType: (*InventoryServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateProduct",
|
|
Handler: _InventoryService_CreateProduct_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateProduct",
|
|
Handler: _InventoryService_UpdateProduct_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteProduct",
|
|
Handler: _InventoryService_DeleteProduct_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetProduct",
|
|
Handler: _InventoryService_GetProduct_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListProduct",
|
|
Handler: _InventoryService_ListProduct_Handler,
|
|
},
|
|
{
|
|
MethodName: "ImportProducts",
|
|
Handler: _InventoryService_ImportProducts_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListImportLog",
|
|
Handler: _InventoryService_ListImportLog_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetStockSummary",
|
|
Handler: _InventoryService_GetStockSummary_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetStockGroup",
|
|
Handler: _InventoryService_GetStockGroup_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateStockCheck",
|
|
Handler: _InventoryService_CreateStockCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateStockCheck",
|
|
Handler: _InventoryService_UpdateStockCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "ConfirmStockCheck",
|
|
Handler: _InventoryService_ConfirmStockCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetStockCheck",
|
|
Handler: _InventoryService_GetStockCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListStockCheck",
|
|
Handler: _InventoryService_ListStockCheck_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateStockAdjust",
|
|
Handler: _InventoryService_CreateStockAdjust_Handler,
|
|
},
|
|
{
|
|
MethodName: "ApproveStockAdjust",
|
|
Handler: _InventoryService_ApproveStockAdjust_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetStockAdjust",
|
|
Handler: _InventoryService_GetStockAdjust_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListStockAdjust",
|
|
Handler: _InventoryService_ListStockAdjust_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "rpc/inventory/inventory.proto",
|
|
}
|