From 333ccb5ab6a3eaca7a3272bfdcbbfee517218c2c Mon Sep 17 00:00:00 2001 From: Espoir <450646331@qq.com> Date: Thu, 26 Aug 2021 22:58:29 +0800 Subject: [PATCH] docs(): update readme --- server/plugin/notify/README.MD | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/server/plugin/notify/README.MD b/server/plugin/notify/README.MD index f85799ce..ee856c84 100644 --- a/server/plugin/notify/README.MD +++ b/server/plugin/notify/README.MD @@ -1,14 +1,28 @@ ## GVA 钉钉群通知插件 +本插件用户向钉钉群推送消息 + ### 使用步骤 -#### 1. +#### 1. 使用说明 + +- 当服务运行异常时,可以向钉钉推送异常信息,便于及时发现解决问题 +- 推送一些关键业务的运行日志等 -config.yaml 文件中配置钉钉通知的URL ,Token 等 #### 2. 配置说明 +钉钉 token 等相关信息的获取,请参考 [钉钉官网](https://developers.dingtalk.com/document/robots/custom-robot-access?spm=ding_open_doc.document.0.0.7f8710afbfzduV#topic-2026027) + +在`plugin/notify/global/global.go` 文件中配置钉钉通知的URL ,Token 等 +```go +var GlobalConfig_ = &config.DingDing{ + Url: "https://oapi.dingtalk.com/robot/send", + Token: "xxx", + Secret: "xxx", +} +``` ### 方法API