init push
This commit is contained in:
17
internal/service/email_sender.go
Normal file
17
internal/service/email_sender.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"wucher/internal/queue"
|
||||
)
|
||||
|
||||
type EmailDeliveryResult struct {
|
||||
Provider string
|
||||
ProviderMessageID string
|
||||
RequestID string
|
||||
}
|
||||
|
||||
type EmailSender interface {
|
||||
Send(ctx context.Context, job queue.EmailJob) (EmailDeliveryResult, error)
|
||||
}
|
||||
Reference in New Issue
Block a user