commons-go/model/notification/Notification.go

19 lines
568 B
Go
Raw Permalink Normal View History

2018-04-26 07:37:59 +00:00
package notification
2018-04-12 09:38:04 +00:00
import (
"encoding/json"
"git.loafle.net/overflow/commons-go/core/util"
2018-04-26 07:37:59 +00:00
"git.loafle.net/overflow/commons-go/model/member"
2018-04-12 09:38:04 +00:00
)
type Notification struct {
2018-05-11 02:24:21 +00:00
ID json.Number `json:"id,Number,omitempty"`
Title string `json:"title,omitempty"`
Message string `json:"message,omitempty"`
Member *member.Member `json:"member,omitempty"`
2018-06-12 13:13:22 +00:00
URL string `json:"url,omitempty"`
2018-05-11 02:24:21 +00:00
ConfirmDate *util.Timestamp `json:"confirmDate,omitempty"`
2018-06-12 13:13:22 +00:00
CreateDate *util.Timestamp `json:"date,omitempty"`
2018-04-12 09:38:04 +00:00
}