Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionPostgresqlRepository ¶
func NewSessionPostgresqlRepository(db *sql.DB) promo_code.Repository
Types ¶
type PostgresqlRepository ¶
type PostgresqlRepository struct {
// contains filtered or unexported fields
}
func (*PostgresqlRepository) CheckPromo ¶
func (r *PostgresqlRepository) CheckPromo(promoCode string) error
func (*PostgresqlRepository) GetDiscountPriceByPromo ¶
func (r *PostgresqlRepository) GetDiscountPriceByPromo(productId uint64, promoCode string) (*models.PromoPrice, error)
Click to show internal directories.
Click to hide internal directories.