mirror of
https://github.com/pushbits/server.git
synced 2025-06-05 12:12:03 +02:00
proof of concept
This commit is contained in:
parent
6c69be7d34
commit
5be204dc19
4 changed files with 65 additions and 0 deletions
|
@ -14,3 +14,14 @@ type Notification struct {
|
|||
Extras map[string]interface{} `json:"extras,omitempty" form:"-" query:"-"`
|
||||
Date time.Time `json:"date"`
|
||||
}
|
||||
|
||||
// DeleteNotification holds information like the message, the reply to message id and the priority of a deletion notification.
|
||||
type DeleteNotification struct {
|
||||
ID uint `json:"id"`
|
||||
DeleteID uint `json:"deleteid"`
|
||||
ApplicationID uint `json:"appid"`
|
||||
Message string `json:"message" form:"message" query:"message" binding:"required"`
|
||||
Priority int `json:"priority" form:"priority" query:"priority"`
|
||||
Extras map[string]interface{} `json:"extras,omitempty" form:"-" query:"-"`
|
||||
Date time.Time `json:"date"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue