Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Archive(c context.Context, aids []int64) (info map[int64]*arcmodle.View3, err error)
- func (d *Dao) Article(c context.Context, articleIDs []int64) (info map[int64]*artmodle.Meta, err error)
- func (d *Dao) Clear(c context.Context, mid int64, businesses []string) (err error)
- func (d *Dao) Cursor(c context.Context, mid, max int64, ps int, tp int8, businesses []string) (res []*hismodle.Resource, err error)
- func (d *Dao) Del(c context.Context, mid int64, hisRes []*hismodle.Resource) (err error)
- func (d *Dao) History(c context.Context, mid int64, pn, ps int) (res []*hismodle.Resource, err error)
- func (d *Dao) HistoryByTP(c context.Context, mid int64, pn, ps int, tp int8) (res []*hismodle.Resource, err error)
- func (d *Dao) PGC(c context.Context, epid, platform string, build, mid int64) (info map[int64]*model.PGCRes, err error)
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 (*Dao) Article ¶
func (d *Dao) Article(c context.Context, articleIDs []int64) (info map[int64]*artmodle.Meta, err error)
Article get articl info
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) History ¶
func (d *Dao) History(c context.Context, mid int64, pn, ps int) (res []*hismodle.Resource, err error)
History get history
Click to show internal directories.
Click to hide internal directories.