yoake/internal/comm/gotify/model.go
2022-11-11 17:16:53 -05:00

29 lines
658 B
Go

package gotify
type Message struct {
Message string `json:"message"`
Title string `json:"title"`
Priority int `json:"priority"`
Extras struct {
ClientDisplay struct {
ContentType string `json:"contentType"`
} `json:"client::display,omitempty"`
ClientNotification struct {
Click struct {
URL string `json:"url"`
} `json:"click,omitempty"`
} `json:"client::notification,omitempty"`
} `json:"extras"`
}
type Health struct {
Database string `json:"database"`
Health string `json:"health"`
}
type Version struct {
BuildDate string `json:"buildDate"`
Commit string `json:"commit"`
Version string `json:"version"`
}