danmu

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: 14 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) CancelAdvDmPurchase

func (d *Dao) CancelAdvDmPurchase(c context.Context, mid, id int64, ip string) (err error)

CancelAdvDmPurchase fn

func (*Dao) DenyAdvDmPurchase

func (d *Dao) DenyAdvDmPurchase(c context.Context, mid, id int64, ip string) (err error)

DenyAdvDmPurchase fn

func (*Dao) Distri

func (d *Dao) Distri(c context.Context, mid, cid int64, ip string) (distri map[int64]int64, err error)

Distri fn

func (*Dao) Edit

func (d *Dao) Edit(c context.Context, mid, cid int64, state int8, dmids []int64, ip string) (err error)

Edit fn

func (*Dao) GetAdvDmPurchases

func (d *Dao) GetAdvDmPurchases(c context.Context, mid int64, ip string) (danmus []*danmu.AdvanceDanmu, err error)

GetAdvDmPurchases fn

func (*Dao) List

func (d *Dao) List(c context.Context, cid, mid int64, page, size int, order, pool, midStr, ip string) (dmList *danmu.DmList, err error)

List fn

func (*Dao) PassAdvDmPurchase

func (d *Dao) PassAdvDmPurchase(c context.Context, mid, id int64, ip string) (err error)

PassAdvDmPurchase fn

func (*Dao) ProtectApplyList

func (d *Dao) ProtectApplyList(c context.Context, mid, page int64, aidStr, sort, ip string) (result *danmu.ApplyList, err error)

ProtectApplyList fn

func (*Dao) ProtectApplyVideoList

func (d *Dao) ProtectApplyVideoList(c context.Context, mid int64, ip string) (result []*dmMdl.Video, err error)

ProtectApplyVideoList fn

func (*Dao) ProtectOper

func (d *Dao) ProtectOper(c context.Context, mid, status int64, ids, ip string) (err error)

ProtectOper fn

func (*Dao) Recent

func (d *Dao) Recent(c context.Context, mid, pn, ps int64, ip string) (dmRecent *danmu.DmRecent, aids []int64, err error)

Recent fn

func (*Dao) ReportUpArchives

func (d *Dao) ReportUpArchives(c context.Context, mid int64, ip string) (ars []*danmu.DmArc, err error)

ReportUpArchives fn

func (*Dao) ReportUpEdit

func (d *Dao) ReportUpEdit(c context.Context, mid, dmid, cid, op int64, ip string) (err error)

ReportUpEdit fn

func (*Dao) ReportUpList

func (d *Dao) ReportUpList(c context.Context, mid, pn, ps int64, aidStr, ip string) (result []*dmMdl.RptSearch, total int64, err error)

ReportUpList fn

func (*Dao) ResetUpBanned

func (d *Dao) ResetUpBanned(c context.Context, mid int64, state int8, hash, ip string) (err error)

ResetUpBanned pool 0:cancel move,1:cancel ignore

func (*Dao) Transfer

func (d *Dao) Transfer(c context.Context, mid, fromCID, toCID int64, offset float64, ak, ck, ip string) (err error)

Transfer fn

func (*Dao) UpPool

func (d *Dao) UpPool(c context.Context, mid, cid int64, dmids []int64, pool int8) (err error)

UpPool fn

Jump to

Keyboard shortcuts

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