Documentation
¶
Index ¶
- type DeleteAllLogsReq
- type DeleteAllLogsRes
- type DeleteAllNotifyReq
- type DeleteAllNotifyRes
- type DeleteLogsReq
- type DeleteLogsRes
- type DeleteNotifyReq
- type DeleteNotifyRes
- type DeletePushChannelReq
- type DeletePushChannelRes
- type GetLangReq
- type GetLangRes
- type GetLatestVersionReq
- type GetLatestVersionRes
- type GetLogsListReq
- type GetLogsListRes
- type GetNotifyListReq
- type GetNotifyListRes
- type GetOverviewReq
- type GetOverviewRes
- type GetPushChannelListReq
- type GetPushChannelListRes
- type GetPushChannelReq
- type GetPushChannelRes
- type GetSysSettingsReq
- type GetSysSettingsRes
- type PostPushChannelReq
- type PostPushChannelRes
- type PushChannelEmailModel
- type PushChannelWebhookModel
- type PutMarkNotifyAllReadReq
- type PutMarkNotifyAllReadRes
- type PutMarkNotifyReadReq
- type PutMarkNotifyReadRes
- type PutPushChannelReq
- type PutPushChannelRes
- type PutSysSettingsReq
- type PutSysSettingsRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteAllLogsReq ¶
type DeleteAllLogsRes ¶
type DeleteAllNotifyReq ¶ added in v0.0.2
type DeleteAllNotifyRes ¶ added in v0.0.2
type DeleteLogsReq ¶
type DeleteLogsRes ¶
type DeleteNotifyReq ¶ added in v0.0.2
type DeleteNotifyRes ¶ added in v0.0.2
type DeletePushChannelReq ¶ added in v0.0.2
type DeletePushChannelRes ¶ added in v0.0.2
type GetLangReq ¶ added in v0.2.0
type GetLangRes ¶ added in v0.2.0
type GetLatestVersionReq ¶
type GetLatestVersionRes ¶
type GetLogsListReq ¶
type GetLogsListRes ¶
type GetNotifyListReq ¶ added in v0.0.2
type GetNotifyListRes ¶ added in v0.0.2
type GetOverviewReq ¶
type GetOverviewRes ¶
type GetPushChannelListReq ¶ added in v0.0.2
type GetPushChannelListRes ¶ added in v0.0.2
type GetPushChannelListRes struct {
g.Meta `mime:"application/json"`
Rows []*entity.PushChannel `json:"rows"`
Total int `json:"total"`
}
type GetPushChannelReq ¶ added in v0.0.2
type GetPushChannelRes ¶ added in v0.0.2
type GetPushChannelRes struct {
g.Meta `mime:"application/json"`
*model.PushChannel
}
type GetSysSettingsReq ¶ added in v0.0.9
type GetSysSettingsRes ¶ added in v0.0.9
type PostPushChannelReq ¶ added in v0.0.2
type PostPushChannelReq struct {
g.Meta `path:"/system/push/channel" method:"post" tags:"消息推送" summary:"添加渠道"`
Name string `json:"name" v:"required#system.push.valid.ChannelNameRequired"`
Type string `` /* 148-byte string literal not displayed */
Status int `json:"status" v:"required#system.push.valid.ChannelStatusRequired"`
Url string `json:"url" v:"required-if:type,gotify#system.push.valid.UrlRequired"`
Remark string `json:"remark" v:"max-length:45#system.push.valid.RemarkLength"`
Email *PushChannelEmailModel `json:"email" v:"required-if:type,email"`
Webhook *PushChannelWebhookModel `json:"webhook" v:"required-if:type,lark,type,dingTalk,type,weCom"`
}
type PostPushChannelRes ¶ added in v0.0.2
type PushChannelEmailModel ¶ added in v0.0.2
type PushChannelEmailModel struct {
Sender string `json:"sender" v:"required|email#system.push.valid.EmailSenderRequired|system.push.valid.EmailFormatInvalid"`
Receiver string `json:"receiver" v:"required#system.push.valid.EmailReceiverRequired"`
Server string `json:"server" v:"required#system.push.valid.EmailServerRequired"`
Port int `json:"port" v:"required#system.push.valid.EmailPortRequired"`
AuthCode string `json:"authCode" v:"required#system.push.valid.EmailAuthCodeRequired"`
}
type PushChannelWebhookModel ¶ added in v0.0.10
type PushChannelWebhookModel struct {
WebhookUrl string `json:"webhookUrl" v:"required|url#system.push.valid.WebhookUrlRequired|system.push.valid.WebhookUrlFormatInvalid"`
MessageType int `json:"messageType" v:"required|in:0,1,2#system.push.valid.MessageTypeRequired|system.push.valid.MessageTypeInvalid"`
Sign string `json:"sign"`
At string `json:"at"`
}
type PutMarkNotifyAllReadReq ¶ added in v0.0.2
type PutMarkNotifyAllReadRes ¶ added in v0.0.2
type PutMarkNotifyReadReq ¶ added in v0.0.2
type PutMarkNotifyReadRes ¶ added in v0.0.2
type PutPushChannelReq ¶ added in v0.0.2
type PutPushChannelReq struct {
g.Meta `path:"/system/push/channel" method:"put" tags:"消息推送" summary:"修改渠道"`
Id int `json:"id" v:"required#system.push.valid.ChannelIDRequired"`
Name string `json:"name" v:"required#system.push.valid.ChannelNameRequired"`
Type string `` /* 148-byte string literal not displayed */
Status int `json:"status" v:"required#system.push.valid.ChannelStatusRequired"`
Url string `json:"url" v:"required-if:type,gotify#system.push.valid.UrlRequired"`
Remark string `json:"remark" v:"max-length:45#system.push.valid.RemarkLength"`
Email *PushChannelEmailModel `json:"email" v:"required-if:type,email"`
Webhook *PushChannelWebhookModel `json:"webhook" v:"required-if:type,lark,type,dingTalk,type,weCom"`
}
type PutPushChannelRes ¶ added in v0.0.2
type PutSysSettingsReq ¶ added in v0.0.9
type PutSysSettingsRes ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.