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
-1
View File
@@ -10,7 +10,6 @@ type ServiceGroup struct {
CasbinService
DictionaryService
DictionaryDetailService
EmailService
InitDBService
MenuService
OperationRecordService
-20
View File
@@ -1,20 +0,0 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/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
}