initial commit 2
This commit is contained in:
34
application/viewmodel/notification.go
Normal file
34
application/viewmodel/notification.go
Normal file
@@ -0,0 +1,34 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user