56 lines
1.2 KiB
Go
56 lines
1.2 KiB
Go
|
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
|
||
|
|
||
|
}
|