Documentation
¶
Index ¶
Constants ¶
View Source
const ( FeishuUserMethod = "feishu_user" FeishuAutomationMethod = "feishu_automation" FeishuStartMethod = "feishu_start" )
View Source
const ( // FeishuTemplateApprovalName 正常审批通知 FeishuTemplateApprovalName = "feishu-card-callback" // FeishuTemplateApprovalRevokeName 带有撤销的审批通知 FeishuTemplateApprovalRevokeName = "feishu-card-revoke" // FeishuTemplateCC 抄送通知 FeishuTemplateCC = "feishu-card-cc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeishuAutomationNotify ¶
type FeishuAutomationNotify struct {
Nc notify.Notifier[*larkim.CreateMessageReq]
// contains filtered or unexported fields
}
func NewFeishuAutomationNotify ¶
func NewFeishuAutomationNotify(lark *lark.Client) (*FeishuAutomationNotify, error)
func (*FeishuAutomationNotify) Builder ¶
func (n *FeishuAutomationNotify) Builder(title string, users []user.User, template string, params NotifyParams) []notify.NotifierWrap
type FeishuStartNotify ¶ added in v1.8.0
type FeishuStartNotify struct {
Nc notify.Notifier[*larkim.CreateMessageReq]
// contains filtered or unexported fields
}
func NewFeishuStartNotify ¶ added in v1.8.0
func NewFeishuStartNotify(lark *lark.Client) (*FeishuStartNotify, error)
func (*FeishuStartNotify) Builder ¶ added in v1.8.0
func (n *FeishuStartNotify) Builder(title string, users []user.User, template string, params NotifyParams) []notify.NotifierWrap
type FeishuUserNotify ¶
type FeishuUserNotify struct {
Nc notify.Notifier[*larkim.CreateMessageReq]
// contains filtered or unexported fields
}
func NewFeishuUserNotify ¶
func NewFeishuUserNotify(lark *lark.Client) (*FeishuUserNotify, error)
func (*FeishuUserNotify) Builder ¶
func (n *FeishuUserNotify) Builder(title string, users []user.User, template string, params NotifyParams) []notify.NotifierWrap
type NotifierIntegration ¶
type NotifierIntegration interface {
Builder(title string, users []user.User, template string, params NotifyParams) []notify.NotifierWrap
}
type NotifyIntegration ¶
type NotifyIntegration struct {
Notifier NotifierIntegration
Name string
}
func BuildReceiverIntegrations ¶
func BuildReceiverIntegrations(larkC *lark.Client) ([]NotifyIntegration, error)
BuildReceiverIntegrations 整合消息通知渠道
func NewNotifyIntegration ¶
func NewNotifyIntegration(n NotifierIntegration, name string) NotifyIntegration
Click to show internal directories.
Click to hide internal directories.