Documentation
¶
Index ¶
- type AddMediaAction
- type AddReceiverAction
- type BadgeAction
- type DeleteMediaAction
- type DeleteReceiverAction
- type Helper
- type IndexAction
- type LevelAction
- type MediaDetailAction
- type MediasAction
- type ReceiverAction
- type SetReadAction
- type SettingAction
- type SoundAction
- type TestMediaAction
- type UpdateMediaAction
- type UpdateReceiverAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMediaAction ¶
func (*AddMediaAction) RunPost ¶
func (this *AddMediaAction) RunPost(params struct { Name string Type string On bool EmailSmtp string EmailUsername string EmailPassword string EmailFrom string WebhookURL string WebhookMethod string WebhookHeaderNames []string WebhookHeaderValues []string WebhookContentType string WebhookParamNames []string WebhookParamValues []string WebhookBody string ScriptType string ScriptPath string ScriptLang string ScriptCode string ScriptCwd string ScriptEnvNames []string ScriptEnvValues []string DingTalkWebhookURL string QyWeixinCorporateId string QyWeixinAgentId string QyWeixinAppSecret string QyWeixinTextFormat string QyWeixinRobotWebhookURL string QyWeixinRobotTextFormat string AliyunSmsSign string AliyunSmsTemplateCode string AliyunSmsTemplateVarNames []string AliyunSmsTemplateVarValues []string AliyunSmsAccessKeyId string AliyunSmsAccessKeySecret string TeaSmsAccessId string TeaSmsAccessSecret string TimeFromHour int TimeFromMinute int TimeFromSecond int TimeToHour int TimeToMinute int TimeToSecond int RateCount int RateMinutes int Must *actions.Must })
提交保存
type AddReceiverAction ¶
func (*AddReceiverAction) Run ¶
func (this *AddReceiverAction) Run(params struct { Level notices.NoticeLevel From string })
添加接收者
type BadgeAction ¶
type DeleteMediaAction ¶
func (*DeleteMediaAction) Run ¶
func (this *DeleteMediaAction) Run(params struct { MediaId string })
删除媒介
type DeleteReceiverAction ¶
func (*DeleteReceiverAction) Run ¶
func (this *DeleteReceiverAction) Run(params struct { Level notices.NoticeLevel ReceiverId string })
删除接收人
type Helper ¶
type Helper struct { }
func (*Helper) BeforeAction ¶
func (this *Helper) BeforeAction(actionPtr actions.ActionWrapper)
type IndexAction ¶
type LevelAction ¶
type MediaDetailAction ¶
func (*MediaDetailAction) Run ¶
func (this *MediaDetailAction) Run(params struct { MediaId string })
媒介详情
type MediasAction ¶
type ReceiverAction ¶
func (*ReceiverAction) Run ¶
func (this *ReceiverAction) Run(params struct { ReceiverId string })
接收人信息
type SetReadAction ¶
func (*SetReadAction) Run ¶
func (this *SetReadAction) Run(params struct { Scope string NoticeIds []string })
设置已读
type SettingAction ¶
type SoundAction ¶ added in v0.1.2
func (*SoundAction) Run ¶ added in v0.1.2
func (this *SoundAction) Run(params struct { On bool })
是否开启通知
type TestMediaAction ¶
func (*TestMediaAction) Run ¶
func (this *TestMediaAction) Run(params struct { MediaId string })
测试媒介
type UpdateMediaAction ¶
func (*UpdateMediaAction) Run ¶
func (this *UpdateMediaAction) Run(params struct { MediaId string From string })
修改媒介
func (*UpdateMediaAction) RunPost ¶
func (this *UpdateMediaAction) RunPost(params struct { MediaId string Name string Type string On bool EmailSmtp string EmailUsername string EmailPassword string EmailFrom string WebhookURL string WebhookMethod string WebhookHeaderNames []string WebhookHeaderValues []string WebhookContentType string WebhookParamNames []string WebhookParamValues []string WebhookBody string ScriptType string ScriptPath string ScriptLang string ScriptCode string ScriptCwd string ScriptEnvNames []string ScriptEnvValues []string DingTalkWebhookURL string QyWeixinCorporateId string QyWeixinAgentId string QyWeixinAppSecret string QyWeixinTextFormat string QyWeixinRobotWebhookURL string QyWeixinRobotTextFormat string AliyunSmsSign string AliyunSmsTemplateCode string AliyunSmsTemplateVarNames []string AliyunSmsTemplateVarValues []string AliyunSmsAccessKeyId string AliyunSmsAccessKeySecret string TeaSmsAccessId string TeaSmsAccessSecret string TimeFromHour int TimeFromMinute int TimeFromSecond int TimeToHour int TimeToMinute int TimeToSecond int RateCount int RateMinutes int Must *actions.Must })
提交修改
type UpdateReceiverAction ¶
func (*UpdateReceiverAction) Run ¶
func (this *UpdateReceiverAction) Run(params struct { ReceiverId string })
修改接收者
Source Files
¶
Click to show internal directories.
Click to hide internal directories.