mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
17 lines
519 B
Go
17 lines
519 B
Go
package email_verification
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// Email_verificationRepository defines CRUD methods specific to Email_verification.
|
|
type Email_verificationRepository interface {
|
|
domain.BaseRepository[domain.EmailVerification]
|
|
|
|
GetByToken(ctx context.Context, token string) (*domain.EmailVerification, error)
|
|
GetByUserID(ctx context.Context, userID uint) ([]domain.EmailVerification, error)
|
|
DeleteExpired(ctx context.Context) (error)
|
|
MarkAsUsed(ctx context.Context, id uint) (error)
|
|
}
|