Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewEmailUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type EmailClient ¶
type EmailTemplateRepo ¶
type EmailTemplateRepo interface { UpsertEmailTemplate(context.Context, *adapter.UpdateEmailTemplateRequest) error GetEmailTemplate(context.Context, *adapter.EmailTemplate) ([]*adapter.EmailTemplate, error) }
type EmailUsecase ¶
type EmailUsecase struct {
// contains filtered or unexported fields
}
func NewEmailUsecase ¶
func NewEmailUsecase(emailTemplate EmailTemplateRepo, profileCli server.ProfileServiceClient, emailClient EmailClient, ) *EmailUsecase
func (*EmailUsecase) SendEmail ¶
func (uc *EmailUsecase) SendEmail(ctx context.Context, req *adapter.SendEmailRequest) (err error)
TODO: need to remove reque
func (*EmailUsecase) UpdateEmailTemplate ¶
func (uc *EmailUsecase) UpdateEmailTemplate(ctx context.Context, req *adapter.UpdateEmailTemplateRequest) (err error)
Click to show internal directories.
Click to hide internal directories.