You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
509 B

package models
import "time"
const (
NotificationComment = 1
NotificationLike = 2
NotificationMention = 3
NotificationPublish = 4
NotificationFollow = 5
NotificationReply = 6
NotificationSystem = 7
)
type Notification struct {
Type int `json:"type"`
Title string `json:"title"`
SubTitle string `json:"subTitle"`
User *UserSimple `json:"user"`
Read bool `json:"read"`
StoryID string `json:"storyID"`
Created time.Time `json:"created"`
}