Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
package templatedemailer
|
||||
|
||||
func (impl *templatedEmailer) SendBusinessVerificationEmail(email, verificationCode, firstName string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package templatedemailer
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
func (impl *templatedEmailer) SendUserPasswordResetEmail(ctx context.Context, email, verificationCode, firstName string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package templatedemailer
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// TemplatedEmailer Is adapter for responsive HTML email templates sender.
|
||||
type TemplatedEmailer interface {
|
||||
GetBackendDomainName() string
|
||||
GetFrontendDomainName() string
|
||||
// SendBusinessVerificationEmail(email, verificationCode, firstName string) error
|
||||
SendUserVerificationEmail(ctx context.Context, email, verificationCode, firstName string) error
|
||||
// SendNewUserTemporaryPasswordEmail(email, firstName, temporaryPassword string) error
|
||||
SendUserPasswordResetEmail(ctx context.Context, email, verificationCode, firstName string) error
|
||||
// SendNewComicSubmissionEmailToStaff(staffEmails []string, submissionID string, storeName string, item string, cpsrn string, serviceTypeName string) error
|
||||
// SendNewComicSubmissionEmailToRetailers(retailerEmails []string, submissionID string, storeName string, item string, cpsrn string, serviceTypeName string) error
|
||||
// SendNewStoreEmailToStaff(staffEmails []string, storeID string) error
|
||||
// SendRetailerStoreActiveEmailToRetailers(retailerEmails []string, storeName string) error
|
||||
}
|
||||
|
||||
type templatedEmailer struct {
|
||||
Logger *zap.Logger
|
||||
}
|
||||
|
||||
func NewTemplatedEmailer(logger *zap.Logger) TemplatedEmailer {
|
||||
logger = logger.Named("TemplatedEmailer")
|
||||
|
||||
return &templatedEmailer{
|
||||
Logger: logger,
|
||||
}
|
||||
}
|
||||
|
||||
func (impl *templatedEmailer) GetBackendDomainName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (impl *templatedEmailer) GetFrontendDomainName() string {
|
||||
return ""
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package templatedemailer
|
||||
|
||||
import (
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// ProvideTemplatedEmailer provides a templated emailer for Wire DI
|
||||
func ProvideTemplatedEmailer(logger *zap.Logger) TemplatedEmailer {
|
||||
return NewTemplatedEmailer(logger)
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package templatedemailer
|
||||
|
||||
func (impl *templatedEmailer) SendRetailerStoreActiveEmailToRetailers(retailerEmails []string, storeName string) error {
|
||||
return nil
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package templatedemailer
|
||||
|
||||
func (impl *templatedEmailer) SendNewUserTemporaryPasswordEmail(email, firstName, temporaryPassword string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
package templatedemailer
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
func (impl *templatedEmailer) SendUserVerificationEmail(ctx context.Context, email, verificationCode, firstName string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue