Explorar o código

fix(): update

Espoir %!s(int64=3) %!d(string=hai) anos
pai
achega
b90f061dc9

+ 2 - 2
server/plugin/notify/router/router.go

@@ -10,9 +10,9 @@ type NotifyRouter struct {
 }
 
 func (s *NotifyRouter) InitRouter(Router *gin.RouterGroup) {
-	emailRouter := Router.Use(middleware.OperationRecord())
+	router := Router.Use(middleware.OperationRecord())
 	var Controller = api.ApiGroupApp.Api.NotifyController
 	{
-		emailRouter.POST("dingding", Controller)
+		router.POST("dingding", Controller)
 	}
 }

+ 1 - 1
server/plugin/notify/service/notify.go

@@ -22,7 +22,7 @@ type NotifyService struct {
 //@description: 钉钉通知测试
 //@return: err error
 
-func (e *NotifyService) SendTextMessage(content string) error {
+func (e *NotifyService) SendTextMessage(content string) (err error) {
 	msg := map[string]interface{}{
 		"msgtype": "text",
 		"text": map[string]string{