thumbup

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: 6 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 is tag dao

func New

func New(c *conf.Config) (d *Dao)

New initial tag dao

func (*Dao) HasLike

func (d *Dao) HasLike(c context.Context, mid int64, business string, messageIDs []int64) (res map[int64]int8, err error)

HasLike user has like

func (*Dao) Like

func (d *Dao) Like(c context.Context, mid, upMid int64, business string, messageID int64, typ int8) (err error)

Like is like view.

func (*Dao) LikeWithStat

func (d *Dao) LikeWithStat(c context.Context, mid, upMid int64, business string, messageID int64, typ int8) (stat *thumbup.Stats, err error)

LikeWithStat is like with stat.

func (*Dao) Stat

func (d *Dao) Stat(c context.Context, mid int64, business string, messageIDs []int64) (res map[int64]*thumbup.Stats, err error)

Stat is

Jump to

Keyboard shortcuts

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