Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken 生成 token 对称加密
func GenerateUuid ¶
func GenerateUuid() string
Types ¶
type EmailService ¶
type EmailService struct { *mail.Client GenCaptcha func() string }
func (*EmailService) Send ¶
func (e *EmailService) Send(from, to, subject, content string) (err error)
Send 发送邮件
func (*EmailService) SendCaptcha ¶
func (e *EmailService) SendCaptcha(to string) error
SendCaptcha 发送四位随机数验证码邮件
Click to show internal directories.
Click to hide internal directories.