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: 17 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 show dao.

func New

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

New new a show dao.

func (*Dao) AddFollowModeListCache

func (d *Dao) AddFollowModeListCache(c context.Context, list map[int64]struct{}) (err error)

AddFollowModeListCache is.

func (*Dao) AddPositionCache

func (d *Dao) AddPositionCache(c context.Context, mid int64, pos int) (err error)

func (*Dao) AddRcmdAidsCache

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

AddRcmdCache add ai into cahce.

func (*Dao) AddRcmdCache

func (d *Dao) AddRcmdCache(c context.Context, is []*ai.Item) (err error)

AddRcmdCache add ai into cahce.

func (*Dao) Close

func (d *Dao) Close()

Close close resource.

func (*Dao) FollowModeList

func (d *Dao) FollowModeList(c context.Context) (list map[int64]struct{}, err error)

FollowModeList is.

func (*Dao) FollowModeListCache

func (d *Dao) FollowModeListCache(c context.Context) (list map[int64]struct{}, err error)

FollowModeListCache is.

func (*Dao) Group

func (d *Dao) Group(c context.Context) (gm map[int64]int, err error)

Group is.

func (*Dao) Hots

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

Hots is.

func (*Dao) PositionCache

func (d *Dao) PositionCache(c context.Context, mid int64) (pos int, err error)

func (*Dao) PubDislike

func (d *Dao) PubDislike(c context.Context, buvid, gt string, id, mid, reasonID, cmreasonID, feedbackID, upperID, rid, tagID int64, adcb string, now time.Time) (err error)

PubDislike is.

func (*Dao) PubDislikeCancel

func (d *Dao) PubDislikeCancel(c context.Context, buvid, gt string, id, mid, reasonID, cmreasonID, feedbackID, upperID, rid, tagID int64, adcb string, now time.Time) (err error)

PubDislikeCancel is.

func (*Dao) RcmdAidsCache

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

RcmdCache get ai cache data from cache

func (*Dao) RcmdCache

func (d *Dao) RcmdCache(c context.Context) (is []*ai.Item, err error)

RcmdCache get ai cache data from cache

func (*Dao) Recommend

func (d *Dao) Recommend(c context.Context, plat int8, buvid string, mid int64, build, loginEvent, parentMode, recsysMode int, zoneID int64, group int, interest, network string, style int, column model.ColumnStatus, flush int, autoplay string, now time.Time) (rs []*ai.Item, userFeature json.RawMessage, respCode int, newUser bool, err error)

Recommend is.

func (*Dao) TagTop

func (d *Dao) TagTop(c context.Context, mid, tid int64, rn int) (aids []int64, err error)

TagTop is.

Jump to

Keyboard shortcuts

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