recommend

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 recommend dao.

func New

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

New recommend dao.

func (*Dao) FeedDynamic

func (d *Dao) FeedDynamic(c context.Context, pull bool, rid, tid int, ctime, mid int64, now time.Time) (hotAids, newAids []int64, ctop, cbottom xtime.Time, err error)

FeedDynamic

func (*Dao) HotHeTongTabCard

func (d *Dao) HotHeTongTabCard(c context.Context, i int) (list []*recommend.CardList, err error)

HotHeTongTabCard hot tab card

func (*Dao) HotTab

func (d *Dao) HotTab(c context.Context) (list []*recommend.List, err error)

HotTab hot tab

func (*Dao) HotTenTab

func (d *Dao) HotTenTab(c context.Context, i int) (list []*recommend.List, err error)

HotTenTab hot tab

func (*Dao) Hots

func (d *Dao) Hots(c context.Context) (arcids []int64, err error)

Hots get recommends.

func (*Dao) RankAll

func (d *Dao) RankAll(c context.Context, order string) (data []*recommend.Arc, err error)

RankAll

func (*Dao) RankAppAll

func (d *Dao) RankAppAll(c context.Context) (aids []int64, others, scores map[int64]int64, err error)

func (*Dao) RankAppBangumi

func (d *Dao) RankAppBangumi(c context.Context) (aids []int64, others, scores map[int64]int64, err error)

func (*Dao) RankAppOrigin

func (d *Dao) RankAppOrigin(c context.Context) (aids []int64, others, scores map[int64]int64, err error)

func (*Dao) RankAppRegion

func (d *Dao) RankAppRegion(c context.Context, rid int) (aids []int64, others, scores map[int64]int64, err error)

func (*Dao) RankBangumi

func (d *Dao) RankBangumi(c context.Context) (data []*recommend.Arc, err error)

RankAll

func (*Dao) RankRegion

func (d *Dao) RankRegion(c context.Context, rid int, order string) (data []*recommend.Arc, err error)

RegionRank

func (*Dao) Region

func (d *Dao) Region(c context.Context, tid string) (arcids []int64, err error)

Region get region recommend.

func (*Dao) RegionArcList

func (d *Dao) RegionArcList(c context.Context, rid, pn, ps int, now time.Time) (arcids []int64, err error)

func (*Dao) RegionChildHots

func (d *Dao) RegionChildHots(c context.Context, rid int) (arcids []int64, err error)

TwoRegionHots

func (*Dao) RegionHots

func (d *Dao) RegionHots(c context.Context, tid int) (arcids []int64, err error)

RegionHots get hots recommend

func (*Dao) RegionList

func (d *Dao) RegionList(c context.Context, rid, tid, audit, pn, ps int, order string) (arcids []int64, err error)

RegionList

Jump to

Keyboard shortcuts

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