Documentation
¶
Index ¶
- type DeleteAllLogsReq
- type DeleteAllLogsRes
- type DeleteAllNotifyReq
- type DeleteAllNotifyRes
- type DeleteLogsReq
- type DeleteLogsRes
- type DeleteNotifyReq
- type DeleteNotifyRes
- type DeletePushChannelReq
- type DeletePushChannelRes
- 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 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 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#渠道名称不能为空"`
Type string `p:"type" json:"type" v:"required|in:gotify,email#渠道类型不能为空|不支持的渠道类型"`
Status int `json:"status" v:"required#渠道启用状态不能为空"`
Url string `json:"url" v:"required-if:type,gotify#Url不能为空"`
Remark string `json:"remark" v:"max-length:45#备注最大长度为45"`
Email *PushChannelEmailModel `json:"email" v:"required-if:type,email"`
}
type PostPushChannelRes ¶ added in v0.0.2
type PushChannelEmailModel ¶ added in v0.0.2
type PushChannelEmailModel struct {
Sender string `json:"sender" v:"required|email#发送邮箱不能为空|邮箱格式不正确"`
Receiver string `json:"receiver" v:"required#接收邮箱不能为空"`
Server string `json:"server" v:"required#邮箱服务器不能为空"`
Port int `json:"port" v:"required#邮箱端口不能为空"`
AuthCode string `json:"authCode" v:"required#邮箱授权码不能为空"`
}
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#渠道ID不能为空"`
Name string `json:"name" v:"required#渠道名称不能为空"`
Type string `p:"type" json:"type" v:"required|in:gotify,email#渠道类型不能为空|不支持的渠道类型"`
Status int `json:"status" v:"required#渠道启用状态不能为空"`
Url string `json:"url" v:"required-if:type,gotify#Url不能为空"`
Remark string `json:"remark" v:"max-length:45#备注最大长度为45"`
Email *PushChannelEmailModel `json:"email" v:"required-if:type,email"`
}
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.