Documentation ¶
Index ¶
- func NewEmailRepo(h *handler.Handler) (domRepo.IEmailRepo, error)
- func NewEmailTemplateRepo(h *handler.Handler) (domRepo.IEmailTemplateRepo, error)
- type BaseRepo
- type EmailRepo
- type EmailTemplateRepo
- func (r *EmailTemplateRepo) Create(req *domSchema.ETCreateRequest, i identity.Identity) (*domSchema.ETCreateResponse, error)
- func (r *EmailTemplateRepo) Delete(req *domSchema.ETDeleteRequest, i identity.Identity) (*domSchema.ETDeleteResponse, error)
- func (r *EmailTemplateRepo) FindByCode(req *domSchema.ETFindByCodeRequest, i identity.Identity) (*domSchema.ETFindByCodeResponse, error)
- func (r *EmailTemplateRepo) ListAll(i identity.Identity) (*domSchema.ETListAllResponse, error)
- func (r *EmailTemplateRepo) SetActive(req *domSchema.ETSetActiveRequest, i identity.Identity) (*domSchema.ETSetActiveResponse, error)
- func (r *EmailTemplateRepo) Update(req *domSchema.ETUpdateRequest, i identity.Identity) (*domSchema.ETUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmailRepo ¶
func NewEmailRepo(h *handler.Handler) (domRepo.IEmailRepo, error)
NewEmailRepo new EmailRepo
func NewEmailTemplateRepo ¶
func NewEmailTemplateRepo(h *handler.Handler) (domRepo.IEmailTemplateRepo, error)
NewEmailTemplateRepo new EmailTemplateRepo implement IEmailTemplateRepo
Types ¶
type BaseRepo ¶
type BaseRepo struct {
// contains filtered or unexported fields
}
BaseRepo type
func (*BaseRepo) SetDBConnectionName ¶
SetDBConnectionName set DBConnectionName
func (*BaseRepo) SetHandler ¶
SetHandler set Handler
type EmailRepo ¶
type EmailRepo struct { BaseRepo // contains filtered or unexported fields }
EmailRepo type Implement IEmailRepo
func (*EmailRepo) Send ¶
func (r *EmailRepo) Send(req *domSchema.SendEmailRequest, i identity.Identity) (*domSchema.SendEmailResponse, error)
Send send Email
type EmailTemplateRepo ¶
type EmailTemplateRepo struct {
BaseRepo
}
EmailTemplateRepo type implement IEmailTemplateRepo
func (*EmailTemplateRepo) Create ¶
func (r *EmailTemplateRepo) Create(req *domSchema.ETCreateRequest, i identity.Identity) (*domSchema.ETCreateResponse, error)
Create create new template
func (*EmailTemplateRepo) Delete ¶
func (r *EmailTemplateRepo) Delete(req *domSchema.ETDeleteRequest, i identity.Identity) (*domSchema.ETDeleteResponse, error)
Delete delete Email Template & Template Version by code
func (*EmailTemplateRepo) FindByCode ¶
func (r *EmailTemplateRepo) FindByCode(req *domSchema.ETFindByCodeRequest, i identity.Identity) (*domSchema.ETFindByCodeResponse, error)
FindByCode find EmailTemplate by code
func (*EmailTemplateRepo) ListAll ¶
func (r *EmailTemplateRepo) ListAll(i identity.Identity) (*domSchema.ETListAllResponse, error)
ListAll list all email template
func (*EmailTemplateRepo) SetActive ¶
func (r *EmailTemplateRepo) SetActive(req *domSchema.ETSetActiveRequest, i identity.Identity) (*domSchema.ETSetActiveResponse, error)
SetActive set Email Template Active Status
func (*EmailTemplateRepo) Update ¶
func (r *EmailTemplateRepo) Update(req *domSchema.ETUpdateRequest, i identity.Identity) (*domSchema.ETUpdateResponse, error)
Update update email template
Click to show internal directories.
Click to hide internal directories.