提交 b90f061d 编写于 作者: Espoir__'s avatar Espoir__

fix(): update

上级 b88fb984
......@@ -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)
}
}
......@@ -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{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册