assist

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: 13 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 creative dao.

func New

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

New init api url

func (*Dao) AddAssist

func (d *Dao) AddAssist(c context.Context, mid, assistMid int64, ip, upUname string) (err error)

AddAssist add assist

func (*Dao) AssistLog

func (d *Dao) AssistLog(c context.Context, mid, assistMid, logID int64, ip string) (assistLog *assist.AssistLog, err error)

AssistLog get assist log info from assist service

func (*Dao) AssistLogObj

func (d *Dao) AssistLogObj(c context.Context, tp, act int8, mid, objID int64) (assLog *assist.AssistLog, err error)

AssistLogObj get assist log info from assist service

func (*Dao) AssistLogs

func (d *Dao) AssistLogs(c context.Context, mid, assistMid, pn, ps, stime, etime int64, ip string) (logs []*assist.AssistLog, pager map[string]int64, err error)

AssistLogs get logs from assist service.

func (*Dao) Assists

func (d *Dao) Assists(c context.Context, mid int64, ip string) (assists []*assist.Assist, err error)

Assists get all Assists from assist service.

func (*Dao) DelAssist

func (d *Dao) DelAssist(c context.Context, mid, assistMid int64, ip, upUname string) (err error)

DelAssist cancel assist

func (*Dao) Info

func (d *Dao) Info(c context.Context, mid, assistMid int64, ip string) (assist int8, err error)

Info check if is assist

func (*Dao) LiveAddAssist

func (d *Dao) LiveAddAssist(c context.Context, mid, assistMid int64, cookie, ip string) (err error)

LiveAddAssist add assist in live room 120013: 直播间不存在

func (*Dao) LiveAssists

func (d *Dao) LiveAssists(c context.Context, mid int64, ip string) (assists []*assist.LiveAssist, err error)

LiveAssists get assists from live

func (*Dao) LiveBannedRevoc

func (d *Dao) LiveBannedRevoc(c context.Context, mid int64, banID, cookie, ip string) (err error)

LiveBannedRevoc recover assist banned state

func (*Dao) LiveCheckAssist

func (d *Dao) LiveCheckAssist(c context.Context, mid, assistMid int64, ip string) (isAss int8, err error)

LiveCheckAssist check assist in live room

func (*Dao) LiveDelAssist

func (d *Dao) LiveDelAssist(c context.Context, mid, assistMid int64, cookie, ip string) (err error)

LiveDelAssist del assist in live room

func (*Dao) LiveStatus

func (d *Dao) LiveStatus(c context.Context, mid int64, ip string) (ok int8, err error)

LiveStatus check if user opened live room. 0:yes 500401: no

func (*Dao) RevocAssistLog

func (d *Dao) RevocAssistLog(c context.Context, mid, assistMid, logID int64, ip string) (err error)

RevocAssistLog calcel assistlog action

func (*Dao) Stat

func (d *Dao) Stat(c context.Context, mid int64, assistMids []int64, ip string) (stat map[int64]map[int8]map[int8]int, err error)

Stat get assists stat

Jump to

Keyboard shortcuts

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