notices

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMediaAction

type AddMediaAction actions.Action

func (*AddMediaAction) Run

func (this *AddMediaAction) Run(params struct{})

添加媒介

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

	ScriptType      string
	ScriptPath      string
	ScriptLang      string
	ScriptCode      string
	ScriptCwd       string
	ScriptEnvNames  []string
	ScriptEnvValues []string

	TimeFromHour   int
	TimeFromMinute int
	TimeFromSecond int
	TimeToHour     int
	TimeToMinute   int
	TimeToSecond   int
	RateCount      int
	RateMinutes    int

	Must *actions.Must
})

提交保存

type AddReceiverAction

type AddReceiverAction actions.Action

func (*AddReceiverAction) Run

func (this *AddReceiverAction) Run(params struct {
	Level notices.NoticeLevel
})

添加接收者

func (*AddReceiverAction) RunPost

func (this *AddReceiverAction) RunPost(params struct {
	Level   notices.NoticeLevel
	On      bool
	Name    string
	MediaId string
	User    string
	Must    actions.Must
})

提交保存

type BadgeAction

type BadgeAction actions.Action

func (*BadgeAction) Run

func (this *BadgeAction) Run(params struct{})

计算未读数量

type DeleteMediaAction

type DeleteMediaAction actions.Action

func (*DeleteMediaAction) Run

func (this *DeleteMediaAction) Run(params struct {
	MediaId string
})

删除媒介

type DeleteReceiverAction

type DeleteReceiverAction actions.Action

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 IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct {
	Read int
	Page int
})

通知

type LevelAction

type LevelAction actions.Action

func (*LevelAction) Run

func (this *LevelAction) Run(params struct {
	Level uint8
})

级别

type MediaDetailAction

type MediaDetailAction actions.Action

func (*MediaDetailAction) Run

func (this *MediaDetailAction) Run(params struct {
	MediaId string
})

媒介详情

type MediasAction

type MediasAction actions.Action

func (*MediasAction) Run

func (this *MediasAction) Run(params struct{})

媒介列表

type ReceiverAction

type ReceiverAction actions.Action

func (*ReceiverAction) Run

func (this *ReceiverAction) Run(params struct {
	ReceiverId string
})

接收人信息

type SetReadAction

type SetReadAction actions.Action

func (*SetReadAction) Run

func (this *SetReadAction) Run(params struct {
	Scope     string
	NoticeIds []string
})

设置已读

type SettingAction

type SettingAction actions.Action

func (*SettingAction) Run

func (this *SettingAction) Run(params struct{})

接收设置

type TestMediaAction

type TestMediaAction actions.Action

func (*TestMediaAction) Run

func (this *TestMediaAction) Run(params struct {
	MediaId string
})

测试媒介

func (*TestMediaAction) RunPost

func (this *TestMediaAction) RunPost(params struct {
	MediaId string
	Subject string
	Body    string
	User    string
	Must    *actions.Must
})

提交测试

type UpdateMediaAction

type UpdateMediaAction actions.Action

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

	ScriptType      string
	ScriptPath      string
	ScriptLang      string
	ScriptCode      string
	ScriptCwd       string
	ScriptEnvNames  []string
	ScriptEnvValues []string

	TimeFromHour   int
	TimeFromMinute int
	TimeFromSecond int
	TimeToHour     int
	TimeToMinute   int
	TimeToSecond   int
	RateCount      int
	RateMinutes    int

	Must *actions.Must
})

提交修改

type UpdateReceiverAction

type UpdateReceiverAction actions.Action

func (*UpdateReceiverAction) Run

func (this *UpdateReceiverAction) Run(params struct {
	ReceiverId string
})

修改接收者

func (*UpdateReceiverAction) RunPost

func (this *UpdateReceiverAction) RunPost(params struct {
	ReceiverId string
	On         bool
	Name       string
	MediaId    string
	User       string
	Must       actions.Must
})

提交保存

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL