You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
851 B

2 years ago
package model
// Config
// @Description: 配置
type Config struct {
MsgEnabled bool
MsgType string
BarkUrl string
BarkKey string
MailHost string
MailProtocol string
MailPort int
MailUser string
MailPwd string
MailFromName string
MailTo []string
}
// BarkRequest
// @Description: Bark请求
type BarkRequest struct {
Body string `json:"body"`
DeviceKey string `json:"device_key"`
Title string `json:"title"`
Badge int `json:"badge"`
Category string `json:"category"`
Sound string `json:"sound"`
Icon string `json:"icon"`
Group string `json:"group"`
Url string `json:"url"`
}
// BarkResponse
// @Description: Bark回复
type BarkResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Timestamp int `json:"timestamp"`
}