feat(bilibili): bilibili login

This commit is contained in:
mei
2026-04-05 22:28:38 +08:00
parent 202f53915f
commit 52dc548c53
10 changed files with 73 additions and 193 deletions
-16
View File
@@ -1,16 +0,0 @@
package sender
import (
"log"
"github.com/CatchZeng/dingtalk/pkg/dingtalk"
)
func SendDingTalkMsg(title string, msg string, accessToken string, secret string) {
client := dingtalk.NewClient(accessToken, secret)
sendMsg := dingtalk.NewMarkdownMessage().SetMarkdown(title, msg)
_, _, err := client.Send(sendMsg)
if err != nil {
log.Printf("发送钉钉消息失败: %v", err)
}
}