prism/service/notification/notification.go
2026-02-02 14:52:07 -08:00

29 lines
626 B
Go

package notification
type Action struct {
ID string `json:"id"`
Endpoint string `json:"endpoint"`
Method string `json:"method"`
Data map[string]interface{} `json:"data,omitempty"`
}
type Notification struct {
Title string `json:"title,omitempty"`
Message string `json:"message"`
Actions []Action `json:"actions,omitempty"`
}
type Channel string
const (
ChannelSignal Channel = "signal"
ChannelWebhook Channel = "webhook"
)
type Mapping struct {
Endpoint string
AppName string
Channel Channel
GroupID *string
UpEndpoint *string
}