f37c1ac19b
- Send verification email before creating user to prevent orphaned accounts - Detect SMTP authentication errors and fail fast without retries - Add field-level validation errors for better frontend UX - Configure docker-compose with explicit environment variables - Document dollar sign escaping in .env.example (use $$) - Implement welcome email on successful verification - Clean up unnecessary comments
17 lines
501 B
Go
17 lines
501 B
Go
package repositories
|
|
|
|
import (
|
|
"context"
|
|
|
|
"apocapoc-api/internal/domain/entities"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
Create(ctx context.Context, user *entities.User) error
|
|
FindByID(ctx context.Context, id string) (*entities.User, error)
|
|
FindByEmail(ctx context.Context, email string) (*entities.User, error)
|
|
FindByVerificationToken(ctx context.Context, token string) (*entities.User, error)
|
|
Update(ctx context.Context, user *entities.User) error
|
|
Delete(ctx context.Context, id string) error
|
|
}
|