repo

package
v0.0.0-...-67402a3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 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 CouponDto

type CouponDto struct {
	Code         string
	CouponTypeId string
}

type CouponRepo

type CouponRepo interface {
	Create(ctx context.Context, dto CouponDto) (*model.Coupon, error)
}

func NewCouponRepo

func NewCouponRepo(db sqlx.ExtContext) CouponRepo

type CouponTypeDto

type CouponTypeDto struct {
	Name   string `json:"name"`
	Chance int    `json:"chance"`
}

type CouponTypeRepo

type CouponTypeRepo interface {
	Create(ctx context.Context, row CouponTypeDto) (*model.CouponType, error)
}

func NewCouponTypeRepo

func NewCouponTypeRepo(db sqlx.ExtContext) CouponTypeRepo

Jump to

Keyboard shortcuts

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