feat: mail config and mail send

This commit is contained in:
zchengo
2023-01-24 20:03:35 +08:00
parent a9e33f2bcc
commit 35886fde4f
17 changed files with 731 additions and 8 deletions
+7
View File
@@ -39,6 +39,7 @@ func Router() {
route.GET("/customer/option", api.NewCustomerApi().QueryOption)
route.GET("/customer/export", api.NewCustomerApi().Export)
route.POST("/customer/create", api.NewCustomerApi().Create)
route.POST("/customer/send", api.NewCustomerApi().SendMail)
route.PUT("/customer/update", api.NewCustomerApi().Update)
route.DELETE("/customer/delete", api.NewCustomerApi().Delete)
@@ -62,6 +63,12 @@ func Router() {
// 仪表盘模块
route.GET("/dashboard/sum", api.NewDashboardApi().Summary)
// 配置模块
route.GET("/config/info", api.NewMailConfigApi().GetInfo)
route.GET("/config/check", api.NewMailConfigApi().Check)
route.PUT("/config/save", api.NewMailConfigApi().Save)
route.PUT("/config/status", api.NewMailConfigApi().UpdateStatus)
// 订阅模块
route.GET("/subscribe/info", api.NewSubscribeApi().GetInfo)
route.POST("/subscribe/pay", api.NewSubscribeApi().Pay)