Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WarehouseUsecase ¶
type WarehouseUsecase interface { GetWarehousesByShopUserId(ctx context.Context, shopUserId uint64) ([]*model.Warehouse, error) GetActiveWarehouseProductStocksByProductId(ctx context.Context, productId uint64) ([]*model.WarehouseProductStock, error) GetWarehouseProductStocksByShopUserIdAndProductId(ctx context.Context, shopUserId, productId uint64) ([]*model.WarehouseProductStock, error) CreateWarehouse(ctx context.Context, warehouse *model.Warehouse) (uint64, error) UpdateWarehouse(ctx context.Context, warehouse *model.Warehouse) error AddWarehouseProductStock(ctx context.Context, shopUserId, id, productId uint64, quantity int) error TransferWarehouseProductStock(ctx context.Context, shopUserId, fromId, toId, productId uint64, quantity int) (*model.WarehouseProductTransfer, error) }
func NewWarehouseUsecase ¶
func NewWarehouseUsecase(rWarehouse warehouse.WarehouseResource) WarehouseUsecase
Click to show internal directories.
Click to hide internal directories.