notifications

package
v0.0.0-...-851e7b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nofications

type Nofications struct{}

Nofications toolkit

func (*Nofications) Send

func (n *Nofications) Send(payload *Payload)

Send notifications

type Payload

type Payload struct {
	// User who created this notification
	User *models.Users

	// TargetUID is the target user
	TargetUID int

	// Type of notification
	Type int

	// Description of notification
	Description string

	//
	// CommentID
	//
	CommentID uint

	//
	// MomentID
	//
	MomentID uint

	//
	// NewsID
	//
	NewsID uint
}

Payload for sending notifications

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL