Files
old-svijetlastrana/application/viewmodel/notification.go
2018-04-25 13:16:36 +02:00

35 lines
1.0 KiB
Go

package viewmodel
import "time"
type Notification struct {
UUID string `json:"uuid"`
To string `json:"to"`
From string `json:"from"`
Type string `json:"type"`
Subject string `json:"subject"`
Message string `json:"message"`
Ride Ride `json:"ride"`
User User `json:"user"`
CreatedUser User `json:"created_user"`
Created time.Time `json:"create_at"`
MessageType string `json:"message_type"`
Read bool `json:"read"`
}
type Message struct {
DeliveryID string `json:"id"`
NotificationID string `json:"nid"`
CreateDate time.Time `json:"date"`
Read bool `json:"readed"`
Content MessageContent `json:"content"`
}
type MessageContent struct {
Type string `json:"type"`
Subject string `json:"subject"`
Content string `json:"body,omitempty"`
Payload interface{} `json:"payload,omitempty"`
RedirectLink string `json:"redirect,omitempty"`
}