warehouse

package
v0.0.0-...-311251f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL