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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service assist.

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service

New get assist service.

func (*Service) AddAssist

func (s *Service) AddAssist(c context.Context, mid, assistMid int64, main, live int8, ip, ak, ck string) (err error)

AddAssist add mid to any assist

func (*Service) AssistLogs

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

AssistLogs get all assistlog by Mid, and format by typeid

func (*Service) Assists

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

Assists get assists

func (*Service) DelAssist

func (s *Service) DelAssist(c context.Context, mid, assistMid int64, ip, ak, ck string) (err error)

DelAssist delete all the assist

func (*Service) LiveCheckAssist

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

LiveCheckAssist check if is assist in live

func (*Service) LiveRevocBanned

func (s *Service) LiveRevocBanned(c context.Context, mid int64, banID, ck, ip string) (err error)

LiveRevocBanned revoke banned in live

func (*Service) LiveStatus

func (s *Service) LiveStatus(c context.Context, mid int64, ip string) (open int8, err error)

LiveStatus get user assist rights about liveRoom

func (*Service) RevocAssistLog

func (s *Service) RevocAssistLog(c context.Context, mid, assistMid, logID int64, ck, ip string) (err error)

RevocAssistLog cancel this asssist action

func (*Service) SetAssist

func (s *Service) SetAssist(c context.Context, mid, assistMid int64, main, live int8, ip, ak, ck string) (err error)

SetAssist get user assist rights about liveRoom

Jump to

Keyboard shortcuts

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