history

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: 15 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 history dao

func New

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

New initial history dao

func (*Dao) Archive

func (d *Dao) Archive(c context.Context, aids []int64) (info map[int64]*arcmodle.View3, err error)

Archive get archive info

func (*Dao) Article

func (d *Dao) Article(c context.Context, articleIDs []int64) (info map[int64]*artmodle.Meta, err error)

Article get articl info

func (*Dao) Clear

func (d *Dao) Clear(c context.Context, mid int64, businesses []string) (err error)

Clear for history

func (*Dao) Cursor

func (d *Dao) Cursor(c context.Context, mid, max int64, ps int, tp int8, businesses []string) (res []*hismodle.Resource, err error)

Cursor 5.28游标由MaxOid+MaxTP唯一确定 改为 由ViewAt唯一确定(防止客户端改动对客户端仍用max字段)

func (*Dao) Del

func (d *Dao) Del(c context.Context, mid int64, hisRes []*hismodle.Resource) (err error)

Del for history

func (*Dao) History

func (d *Dao) History(c context.Context, mid int64, pn, ps int) (res []*hismodle.Resource, err error)

History get history

func (*Dao) HistoryByTP

func (d *Dao) HistoryByTP(c context.Context, mid int64, pn, ps int, tp int8) (res []*hismodle.Resource, err error)

HistoryByTP histroy by tp

func (*Dao) PGC

func (d *Dao) PGC(c context.Context, epid, platform string, build, mid int64) (info map[int64]*model.PGCRes, err error)

PGC get PGC info

Jump to

Keyboard shortcuts

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