Implemented developer database downloads

This commit is contained in:
2019-09-07 19:56:13 +09:00
parent 59b9be5992
commit 4e6aa5eef6
33 changed files with 155 additions and 46 deletions

View File

@ -9,10 +9,11 @@ import (
// Notification represents a user-associated notification.
type Notification struct {
ID string `json:"id"`
UserID string `json:"userId"`
Created string `json:"created"`
Seen string `json:"seen"`
hasID
PushNotification
}
@ -36,7 +37,9 @@ func (notification *Notification) String() string {
// NewNotification creates a new notification.
func NewNotification(userID UserID, pushNotification *PushNotification) *Notification {
return &Notification{
ID: GenerateID("Notification"),
hasID: hasID{
ID: GenerateID("Notification"),
},
UserID: userID,
Created: DateTimeUTC(),
Seen: "",