yxh 4 жил өмнө
parent
commit
76dd4fd237

+ 7 - 0
app/common/plugins/mail.go

@@ -0,0 +1,7 @@
+package plugins
+
+type ICommonQQMail interface {
+	SendMail(mailTo []string, subject string, body string) error
+}
+
+var CommonQQMail ICommonQQMail

+ 14 - 0
app/common/plugins/sms.go

@@ -0,0 +1,14 @@
+package plugins
+
+type ICommonSmsWyyx interface {
+	SendSMSTemplate(params IWyyxReq) (string, error)
+}
+
+// 网易云信
+var CommonSmsWyyx ICommonSmsWyyx
+
+// 入参
+type IWyyxReq struct {
+	Mobiles []string `v:"required#电话号码不能为空"`
+	Params  []string `v:"required#短信参数不能为空"`
+}

+ 8 - 0
plugins/router/router.go

@@ -0,0 +1,8 @@
+/*
+* @desc:插件路由
+* @company:云南省奇讯科技有限公司
+* @Author: yixiaohu
+* @Date:   2021/12/22 10:42
+ */
+
+package router

+ 11 - 0
router/plugins.go

@@ -0,0 +1,11 @@
+/*
+* @desc:插件路由
+* @company:云南省奇讯科技有限公司
+* @Author: yixiaohu
+* @Date:   2021/8/26 10:28
+ */
+
+package router
+
+//插件路由加载
+import _ "gfast/plugins/router"