Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultVoucherRepo ¶
type DefaultVoucherRepo struct {
// contains filtered or unexported fields
}
func (*DefaultVoucherRepo) GetVoucherByID ¶
func (r *DefaultVoucherRepo) GetVoucherByID(id string) (*models.Voucher, error)
func (*DefaultVoucherRepo) GetVoucherRedeem ¶
func (r *DefaultVoucherRepo) GetVoucherRedeem(userId uint, voucherId string) (*models.VoucherRedeem, error)
type VoucherRepo ¶
type VoucherRepo interface { GetVoucherByID(id string) (*models.Voucher, error) GetVoucherRedeem(userId uint, voucherId string) (*models.VoucherRedeem, error) }
func NewDefaultVoucherRepo ¶
func NewDefaultVoucherRepo(db *gorm.DB) VoucherRepo
Click to show internal directories.
Click to hide internal directories.