message

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao message dao.

func NewMessageDao

func NewMessageDao(c *conf.Config) *Dao

NewMessageDao new a message dao and return.

func (*Dao) AcceptReport

func (dao *Dao) AcceptReport(c context.Context, mid int64, title, msg string, now time.Time) (err error)

AcceptReport send accept report message.

func (*Dao) At

func (dao *Dao) At(c context.Context, mid int64, mids []int64, title, msg, extraInfo string, now time.Time) (err error)

At send a at message.

func (*Dao) DeleteReply

func (dao *Dao) DeleteReply(c context.Context, mid int64, title, msg string, now time.Time) (err error)

DeleteReply send delete reply message.

func (*Dao) Like

func (dao *Dao) Like(c context.Context, mid, tomid int64, title, msg, extraInfo string, now time.Time) (err error)

Like send a like message.

func (*Dao) Reply

func (dao *Dao) Reply(c context.Context, mc, resID string, mid, tomid int64, title, msg, extraInfo string, now time.Time) (err error)

Reply send a reply message.

func (*Dao) System

func (dao *Dao) System(c context.Context, mc, resID string, mid int64, title, msg, info string, now time.Time) (err error)

System send a system message.

Jump to

Keyboard shortcuts

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