feat: user service
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user