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