Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresInventoryRepository ¶
func NewPostgresInventoryRepository(log logger.ILogger, cfg *gormpgsql.GormPostgresConfig, gorm *gorm.DB) contracts.InventoryRepository
Types ¶
type PostgresInventoryRepository ¶
type PostgresInventoryRepository struct {
// contains filtered or unexported fields
}
func (*PostgresInventoryRepository) AddProductItemToInventory ¶
func (p *PostgresInventoryRepository) AddProductItemToInventory(ctx context.Context, productItem *models.ProductItem) (*models.ProductItem, error)
func (*PostgresInventoryRepository) GetProductInInventories ¶
func (p *PostgresInventoryRepository) GetProductInInventories(ctx context.Context, uuid uuid.UUID) (*models.ProductItem, error)
Click to show internal directories.
Click to hide internal directories.