Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotificationIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, }
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct {
repos.BaseEntity `json:",inline" graphql:"noinput"`
Type NotificationType `json:"notificationType" graphql:"noinput"`
Content NotifyContent `json:"content" graphql:"noinput"`
Priority int `json:"priority" graphql:"noinput"`
AccountName string `json:"accountName" graphql:"noinput"`
Read bool `json:"read" graphql:"noinput"`
}
func (*Notification) ParseBytes ¶
func (obj *Notification) ParseBytes(data []byte) error
func (*Notification) ToBytes ¶
func (obj *Notification) ToBytes() ([]byte, error)
func (*Notification) ToPlain ¶
func (obj *Notification) ToPlain() string
type NotificationType ¶
type NotificationType string
const ( NotifyTypeAlert NotificationType = "alert" NotifyTypeNotify NotificationType = "notification" )
Click to show internal directories.
Click to hide internal directories.