codeword/internal/repository/promocode.go

56 lines
1.2 KiB
Go
Raw Normal View History

2024-03-03 20:18:42 +00:00
package repository
import (
"codeword/internal/models"
"context"
)
type PromocodeRepository struct {
}
func NewPromocodeRepository() *PromocodeRepository {
return &PromocodeRepository{}
}
func (r *PromocodeRepository) Createpromocode(ctx context.Context, request *models.PromoCodeReq) (*models.PromoCode, error) {
//TODO:IMPLEMENT ME
return &models.PromoCode{}, nil
}
func (r *PromocodeRepository) Editpromocode(ctx context.Context, request *models.EditPromoCodeReq) (*models.PromoCode, error) {
//TODO:IMPLEMENT ME
return &models.PromoCode{}, nil
}
func (r *PromocodeRepository) Createfastlink(ctx context.Context, request *models.CreateFastLinkReq) (*models.CreateFastLinkResp, error) {
//TODO:IMPLEMENT ME
return &models.CreateFastLinkResp{}, nil
}
func (r *PromocodeRepository) Delete(ctx context.Context) error {
//TODO:IMPLEMENT ME
return nil
}
func (r *PromocodeRepository) Activate(ctx context.Context, request *models.ActivateReq) (*models.ActivateResp, error) {
//TODO:IMPLEMENT ME
return &models.ActivateResp{}, nil
}
func (r *PromocodeRepository) Getlist(ctx context.Context, request *models.GetPromoCodesListReq) (*models.GetPromoCodesListResp, error) {
//TODO:IMPLEMENT ME
return &models.GetPromoCodesListResp{}, nil
}