Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailProviderSet = wire.NewSet( NewSender, cache.EmailCodeCacheProvider, NewEmailHandler, )
View Source
var EmailRouterSet = wire.NewSet( EmailProviderSet, wire.Struct(new(Handler), "*"), SetupRouter, )
Functions ¶
This section is empty.
Types ¶
type EmailHandler ¶
type EmailHandler struct { EmailLogic Sender // contains filtered or unexported fields }
func NewEmailHandler ¶
func NewEmailHandler(cfg *conf.AppConf, emailLogic Sender, codeCache cache.RedisEmailCodeCache) EmailHandler
func (EmailHandler) SendCodeEmail ¶
func (e EmailHandler) SendCodeEmail(ctx *gin.Context)
SendCodeEmail @Summary SendCodeEmail @Description auth code email api @Tags email @Accept json @Produce json @Param email query string true "email" @Success 200 {object} types.Response @Router /email/code [GET]
type Handler ¶
type Handler struct {
Email EmailHandler
}
type HandlerRouter ¶
HandlerRouter just for wire injection, no real influence
func SetupRouter ¶
func SetupRouter(api *ginx.RouterGroup, Handler Handler) HandlerRouter
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func (Sender) SendHtmlTemplateMail ¶
Click to show internal directories.
Click to hide internal directories.