2026-02-28 15:29:16 +08:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
|
// goctl 1.9.2
|
|
|
|
|
// Source: inventory.proto
|
|
|
|
|
|
|
|
|
|
package inventoryservice
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"muyu-apiserver/rpc/inventory/pb"
|
|
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type (
|
2026-06-14 15:24:02 +08:00
|
|
|
ApproveStockAdjustReq = pb.ApproveStockAdjustReq
|
|
|
|
|
BoltListItem = pb.BoltListItem
|
|
|
|
|
BoltInfo = pb.BoltInfo
|
|
|
|
|
ColorDetailItem = pb.ColorDetailItem
|
|
|
|
|
ConfirmStockCheckReq = pb.ConfirmStockCheckReq
|
|
|
|
|
CreateProductReq = pb.CreateProductReq
|
2026-07-05 08:06:28 +09:00
|
|
|
CreateProductBatchReq = pb.CreateProductBatchReq
|
2026-06-14 15:24:02 +08:00
|
|
|
CreateStockAdjustReq = pb.CreateStockAdjustReq
|
|
|
|
|
CreateStockCheckReq = pb.CreateStockCheckReq
|
2026-07-05 08:06:28 +09:00
|
|
|
CreateYarnReq = pb.CreateYarnReq
|
|
|
|
|
DeleteProductBatchReq = pb.DeleteProductBatchReq
|
2026-06-14 15:24:02 +08:00
|
|
|
DeleteProductReq = pb.DeleteProductReq
|
2026-07-05 08:06:28 +09:00
|
|
|
DeleteYarnReq = pb.DeleteYarnReq
|
2026-06-14 15:24:02 +08:00
|
|
|
Empty = pb.Empty
|
|
|
|
|
GetProductReq = pb.GetProductReq
|
|
|
|
|
GetStockAdjustReq = pb.GetStockAdjustReq
|
|
|
|
|
GetStockCheckReq = pb.GetStockCheckReq
|
2026-07-05 08:06:28 +09:00
|
|
|
GetYarnReq = pb.GetYarnReq
|
2026-06-14 15:24:02 +08:00
|
|
|
IdResp = pb.IdResp
|
|
|
|
|
ImportLogInfo = pb.ImportLogInfo
|
|
|
|
|
ImportProductReq = pb.ImportProductReq
|
|
|
|
|
ImportProductResp = pb.ImportProductResp
|
|
|
|
|
ListBoltReq = pb.ListBoltReq
|
|
|
|
|
ListBoltResp = pb.ListBoltResp
|
|
|
|
|
ListBoltViewReq = pb.ListBoltViewReq
|
|
|
|
|
ListBoltViewResp = pb.ListBoltViewResp
|
|
|
|
|
ListColorDetailReq = pb.ListColorDetailReq
|
|
|
|
|
ListPanViewReq = pb.ListPanViewReq
|
|
|
|
|
ListPanViewResp = pb.ListPanViewResp
|
|
|
|
|
PanListItem = pb.PanListItem
|
|
|
|
|
ListColorDetailResp = pb.ListColorDetailResp
|
|
|
|
|
ListImportLogReq = pb.ListImportLogReq
|
|
|
|
|
ListImportLogResp = pb.ListImportLogResp
|
|
|
|
|
ListPanReq = pb.ListPanReq
|
|
|
|
|
ListPanResp = pb.ListPanResp
|
2026-07-05 08:06:28 +09:00
|
|
|
ListProductBatchReq = pb.ListProductBatchReq
|
|
|
|
|
ListProductBatchResp = pb.ListProductBatchResp
|
2026-06-14 15:24:02 +08:00
|
|
|
ListProductReq = pb.ListProductReq
|
|
|
|
|
ListProductResp = pb.ListProductResp
|
|
|
|
|
ListProductSummaryReq = pb.ListProductSummaryReq
|
|
|
|
|
ListProductSummaryResp = pb.ListProductSummaryResp
|
|
|
|
|
ListStockAdjustReq = pb.ListStockAdjustReq
|
|
|
|
|
ListStockAdjustResp = pb.ListStockAdjustResp
|
|
|
|
|
ListStockCheckReq = pb.ListStockCheckReq
|
|
|
|
|
ListStockCheckResp = pb.ListStockCheckResp
|
2026-07-05 08:06:28 +09:00
|
|
|
ListYarnReq = pb.ListYarnReq
|
|
|
|
|
ListYarnResp = pb.ListYarnResp
|
2026-06-14 15:24:02 +08:00
|
|
|
PanInfo = pb.PanInfo
|
|
|
|
|
PanInput = pb.PanInput
|
2026-07-05 08:06:28 +09:00
|
|
|
ProductBatchInfo = pb.ProductBatchInfo
|
|
|
|
|
ProductBatchInput = pb.ProductBatchInput
|
2026-06-14 15:24:02 +08:00
|
|
|
ProductInfo = pb.ProductInfo
|
|
|
|
|
ProductSummaryItem = pb.ProductSummaryItem
|
|
|
|
|
ProductTreeResp = pb.ProductTreeResp
|
|
|
|
|
SaveBoltsReq = pb.SaveBoltsReq
|
|
|
|
|
SavePansReq = pb.SavePansReq
|
|
|
|
|
StockAdjustDetailInfo = pb.StockAdjustDetailInfo
|
|
|
|
|
StockAdjustDetailReq = pb.StockAdjustDetailReq
|
|
|
|
|
StockAdjustInfo = pb.StockAdjustInfo
|
|
|
|
|
StockCheckDetailInfo = pb.StockCheckDetailInfo
|
|
|
|
|
StockCheckDetailReq = pb.StockCheckDetailReq
|
|
|
|
|
StockCheckInfo = pb.StockCheckInfo
|
|
|
|
|
StockGroupItem = pb.StockGroupItem
|
|
|
|
|
StockGroupReq = pb.StockGroupReq
|
|
|
|
|
StockGroupResp = pb.StockGroupResp
|
|
|
|
|
StockSummaryReq = pb.StockSummaryReq
|
|
|
|
|
StockSummaryResp = pb.StockSummaryResp
|
2026-07-05 08:06:28 +09:00
|
|
|
UpdateProductBatchReq = pb.UpdateProductBatchReq
|
2026-06-14 15:24:02 +08:00
|
|
|
UpdateProductReq = pb.UpdateProductReq
|
|
|
|
|
UpdateStockCheckReq = pb.UpdateStockCheckReq
|
2026-07-05 08:06:28 +09:00
|
|
|
UpdateYarnReq = pb.UpdateYarnReq
|
|
|
|
|
YarnInfo = pb.YarnInfo
|
2026-02-28 15:29:16 +08:00
|
|
|
|
|
|
|
|
InventoryService interface {
|
2026-06-14 15:24:02 +08:00
|
|
|
// Product CRUD
|
2026-02-28 15:29:16 +08:00
|
|
|
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)
|
2026-06-14 15:24:02 +08:00
|
|
|
// Product Tree (panel 3)
|
|
|
|
|
GetProductTree(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*ProductTreeResp, error)
|
|
|
|
|
// Product Summary (panel 1)
|
|
|
|
|
ListProductSummary(ctx context.Context, in *ListProductSummaryReq, opts ...grpc.CallOption) (*ListProductSummaryResp, error)
|
|
|
|
|
// Color Detail (panel 2)
|
|
|
|
|
ListColorDetail(ctx context.Context, in *ListColorDetailReq, opts ...grpc.CallOption) (*ListColorDetailResp, error)
|
2026-07-05 08:06:28 +09:00
|
|
|
// Yarn CRUD
|
|
|
|
|
CreateYarn(ctx context.Context, in *CreateYarnReq, opts ...grpc.CallOption) (*IdResp, error)
|
|
|
|
|
UpdateYarn(ctx context.Context, in *UpdateYarnReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
|
DeleteYarn(ctx context.Context, in *DeleteYarnReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
|
GetYarn(ctx context.Context, in *GetYarnReq, opts ...grpc.CallOption) (*YarnInfo, error)
|
|
|
|
|
ListYarn(ctx context.Context, in *ListYarnReq, opts ...grpc.CallOption) (*ListYarnResp, error)
|
|
|
|
|
// Product Batch CRUD
|
|
|
|
|
CreateProductBatch(ctx context.Context, in *CreateProductBatchReq, opts ...grpc.CallOption) (*IdResp, error)
|
|
|
|
|
UpdateProductBatch(ctx context.Context, in *UpdateProductBatchReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
|
DeleteProductBatch(ctx context.Context, in *DeleteProductBatchReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
|
ListProductBatch(ctx context.Context, in *ListProductBatchReq, opts ...grpc.CallOption) (*ListProductBatchResp, error)
|
2026-06-14 15:24:02 +08:00
|
|
|
// Pan / Bolt list views
|
|
|
|
|
ListPanView(ctx context.Context, in *ListPanViewReq, opts ...grpc.CallOption) (*ListPanViewResp, error)
|
|
|
|
|
ListBoltView(ctx context.Context, in *ListBoltViewReq, opts ...grpc.CallOption) (*ListBoltViewResp, error)
|
|
|
|
|
// Pan CRUD
|
|
|
|
|
ListPans(ctx context.Context, in *ListPanReq, opts ...grpc.CallOption) (*ListPanResp, error)
|
|
|
|
|
SavePans(ctx context.Context, in *SavePansReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
|
// Bolt CRUD
|
|
|
|
|
ListBolts(ctx context.Context, in *ListBoltReq, opts ...grpc.CallOption) (*ListBoltResp, error)
|
|
|
|
|
SaveBolts(ctx context.Context, in *SaveBoltsReq, opts ...grpc.CallOption) (*Empty, error)
|
2026-02-28 15:29:16 +08:00
|
|
|
// 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)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defaultInventoryService struct {
|
|
|
|
|
cli zrpc.Client
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func NewInventoryService(cli zrpc.Client) InventoryService {
|
|
|
|
|
return &defaultInventoryService{
|
|
|
|
|
cli: cli,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-14 15:24:02 +08:00
|
|
|
// Product CRUD
|
2026-02-28 15:29:16 +08:00
|
|
|
func (m *defaultInventoryService) CreateProduct(ctx context.Context, in *CreateProductReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.CreateProduct(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) UpdateProduct(ctx context.Context, in *UpdateProductReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.UpdateProduct(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) DeleteProduct(ctx context.Context, in *DeleteProductReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.DeleteProduct(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) GetProduct(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*ProductInfo, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetProduct(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListProduct(ctx context.Context, in *ListProductReq, opts ...grpc.CallOption) (*ListProductResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListProduct(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-14 15:24:02 +08:00
|
|
|
func (m *defaultInventoryService) GetProductTree(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*ProductTreeResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetProductTree(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListProductSummary(ctx context.Context, in *ListProductSummaryReq, opts ...grpc.CallOption) (*ListProductSummaryResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListProductSummary(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListColorDetail(ctx context.Context, in *ListColorDetailReq, opts ...grpc.CallOption) (*ListColorDetailResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListColorDetail(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-05 08:06:28 +09:00
|
|
|
func (m *defaultInventoryService) CreateYarn(ctx context.Context, in *CreateYarnReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.CreateYarn(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) UpdateYarn(ctx context.Context, in *UpdateYarnReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.UpdateYarn(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) DeleteYarn(ctx context.Context, in *DeleteYarnReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.DeleteYarn(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) GetYarn(ctx context.Context, in *GetYarnReq, opts ...grpc.CallOption) (*YarnInfo, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetYarn(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListYarn(ctx context.Context, in *ListYarnReq, opts ...grpc.CallOption) (*ListYarnResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListYarn(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) CreateProductBatch(ctx context.Context, in *CreateProductBatchReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.CreateProductBatch(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) UpdateProductBatch(ctx context.Context, in *UpdateProductBatchReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.UpdateProductBatch(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) DeleteProductBatch(ctx context.Context, in *DeleteProductBatchReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.DeleteProductBatch(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListProductBatch(ctx context.Context, in *ListProductBatchReq, opts ...grpc.CallOption) (*ListProductBatchResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListProductBatch(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-14 15:24:02 +08:00
|
|
|
func (m *defaultInventoryService) ListPanView(ctx context.Context, in *ListPanViewReq, opts ...grpc.CallOption) (*ListPanViewResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListPanView(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListBoltView(ctx context.Context, in *ListBoltViewReq, opts ...grpc.CallOption) (*ListBoltViewResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListBoltView(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListPans(ctx context.Context, in *ListPanReq, opts ...grpc.CallOption) (*ListPanResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListPans(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) SavePans(ctx context.Context, in *SavePansReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.SavePans(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListBolts(ctx context.Context, in *ListBoltReq, opts ...grpc.CallOption) (*ListBoltResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListBolts(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) SaveBolts(ctx context.Context, in *SaveBoltsReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.SaveBolts(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 15:29:16 +08:00
|
|
|
// Import
|
|
|
|
|
func (m *defaultInventoryService) ImportProducts(ctx context.Context, in *ImportProductReq, opts ...grpc.CallOption) (*ImportProductResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ImportProducts(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListImportLog(ctx context.Context, in *ListImportLogReq, opts ...grpc.CallOption) (*ListImportLogResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListImportLog(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Stock Statistics
|
|
|
|
|
func (m *defaultInventoryService) GetStockSummary(ctx context.Context, in *StockSummaryReq, opts ...grpc.CallOption) (*StockSummaryResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetStockSummary(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) GetStockGroup(ctx context.Context, in *StockGroupReq, opts ...grpc.CallOption) (*StockGroupResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetStockGroup(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Stock Check
|
|
|
|
|
func (m *defaultInventoryService) CreateStockCheck(ctx context.Context, in *CreateStockCheckReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.CreateStockCheck(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) UpdateStockCheck(ctx context.Context, in *UpdateStockCheckReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.UpdateStockCheck(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ConfirmStockCheck(ctx context.Context, in *ConfirmStockCheckReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ConfirmStockCheck(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) GetStockCheck(ctx context.Context, in *GetStockCheckReq, opts ...grpc.CallOption) (*StockCheckInfo, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetStockCheck(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListStockCheck(ctx context.Context, in *ListStockCheckReq, opts ...grpc.CallOption) (*ListStockCheckResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListStockCheck(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Stock Adjust
|
|
|
|
|
func (m *defaultInventoryService) CreateStockAdjust(ctx context.Context, in *CreateStockAdjustReq, opts ...grpc.CallOption) (*IdResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.CreateStockAdjust(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ApproveStockAdjust(ctx context.Context, in *ApproveStockAdjustReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ApproveStockAdjust(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) GetStockAdjust(ctx context.Context, in *GetStockAdjustReq, opts ...grpc.CallOption) (*StockAdjustInfo, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.GetStockAdjust(ctx, in, opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *defaultInventoryService) ListStockAdjust(ctx context.Context, in *ListStockAdjustReq, opts ...grpc.CallOption) (*ListStockAdjustResp, error) {
|
|
|
|
|
client := pb.NewInventoryServiceClient(m.cli.Conn())
|
|
|
|
|
return client.ListStockAdjust(ctx, in, opts...)
|
|
|
|
|
}
|