mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
parent
7f6399a718
commit
c59b81e4c7
20 changed files with 1619 additions and 2164 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
|
||||
// @external_notifier(Lark Custom)
|
||||
type LarkCustom struct {
|
||||
Domain string `json:"domain" title:"Domain"`
|
||||
AppID string `json:"app_id" title:"App ID"`
|
||||
AppSecret string `json:"app_secret" title:"App Secret"`
|
||||
OpenID string `json:"open_id" title:"Open ID"`
|
||||
|
@ -38,6 +39,13 @@ func init() {
|
|||
lark.Email(larkCustomConfig.Email),
|
||||
lark.ChatID(larkCustomConfig.ChatID),
|
||||
)
|
||||
|
||||
if larkCustomConfig.Domain != "" {
|
||||
larkCustomAppService.AddReceivers(
|
||||
lark.Domain(larkCustomConfig.Domain),
|
||||
)
|
||||
}
|
||||
|
||||
return larkCustomAppService.Send(ctx, msg.GetTitle(n.Language), msg.GetContent(n.Language))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue