email提为插件模式

This commit is contained in:
蒋吉兆
2021-08-22 12:21:32 +08:00
parent fac6671841
commit 6638db45a5
21 changed files with 223 additions and 75 deletions
+7
View File
@@ -0,0 +1,7 @@
package service
type ServiceGroup struct {
EmailService
}
var ServiceGroupApp = new(ServiceGroup)
+20
View File
@@ -0,0 +1,20 @@
package service
import (
"github.com/flipped-aurora/gin-vue-admin/plugin/email/utils"
)
type EmailService struct {
}
//@author: [maplepie](https://github.com/maplepie)
//@function: EmailTest
//@description: 发送邮件测试
//@return: err error
func (e *EmailService) EmailTest() (err error) {
subject := "test"
body := "test"
err = utils.EmailTest(subject, body)
return err
}