19 lines
557 B
Go
19 lines
557 B
Go
package ports
|
|
|
|
import (
|
|
"context"
|
|
|
|
"galaxy/user/internal/domain/authblock"
|
|
"galaxy/user/internal/domain/common"
|
|
)
|
|
|
|
// BlockedEmailStore persists the dedicated blocked-email-subject model used by
|
|
// auth-facing flows.
|
|
type BlockedEmailStore interface {
|
|
// GetByEmail returns the blocked-email subject for email.
|
|
GetByEmail(ctx context.Context, email common.Email) (authblock.BlockedEmailSubject, error)
|
|
|
|
// Upsert stores or replaces the blocked-email subject for record.Email.
|
|
Upsert(ctx context.Context, record authblock.BlockedEmailSubject) error
|
|
}
|