Documentation
¶
Index ¶
- type Dao
- func (d *Dao) Category(c context.Context, isOversea int32) (category []*tag.ChannelCategory, err error)
- func (d *Dao) ChannelDetail(c context.Context, mid, tid int64, tname string, isOversea int32) (t *tag.ChannelDetail, err error)
- func (d *Dao) Discover(c context.Context, mid int64, isOversea int32) (discover []*tag.Channel, err error)
- func (d *Dao) InfoByID(c context.Context, mid, tid int64) (t *tag.Tag, err error)
- func (d *Dao) InfoByIDs(c context.Context, mid int64, tids []int64) (tm map[int64]*tag.Tag, err error)
- func (d *Dao) InfoByName(c context.Context, mid int64, tname string) (t *tag.Tag, err error)
- func (d *Dao) ListByCategory(c context.Context, id, mid int64, isOversea int32) (list []*tag.Channel, err error)
- func (d *Dao) Recommend(c context.Context, mid int64, isOversea int32) (rec []*tag.Channel, err error)
- func (d *Dao) Resources(c context.Context, plat int8, id, mid int64, name, buvid string, ...) (res *tag.ChannelResource, err error)
- func (d *Dao) Square(c context.Context, mid int64, tagNum, oidNum, build int, loginEvent int32, ...) (square *tag.ChannelSquare, err error)
- func (d *Dao) Subscribe(c context.Context, mid int64) (customSort *tag.CustomSortChannel, err error)
- func (d *Dao) SubscribeAdd(c context.Context, mid, tagID int64, now time.Time) (err error)
- func (d *Dao) SubscribeCancel(c context.Context, mid, tagID int64, now time.Time) (err error)
- func (d *Dao) SubscribeUpdate(c context.Context, mid int64, tids string) (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 tag
func (*Dao) Category ¶
func (d *Dao) Category(c context.Context, isOversea int32) (category []*tag.ChannelCategory, err error)
Category channel category
func (*Dao) ChannelDetail ¶
func (d *Dao) ChannelDetail(c context.Context, mid, tid int64, tname string, isOversea int32) (t *tag.ChannelDetail, err error)
ChannelDetail channel info by id or nane
func (*Dao) Discover ¶
func (d *Dao) Discover(c context.Context, mid int64, isOversea int32) (discover []*tag.Channel, err error)
Discover 频道tab页的3个发现频道
func (*Dao) InfoByIDs ¶
func (d *Dao) InfoByIDs(c context.Context, mid int64, tids []int64) (tm map[int64]*tag.Tag, err error)
InfoByIDs by tids
func (*Dao) InfoByName ¶
InfoByName by tag name
func (*Dao) ListByCategory ¶
func (d *Dao) ListByCategory(c context.Context, id, mid int64, isOversea int32) (list []*tag.Channel, err error)
ListByCategory 分类下的频道
func (*Dao) Recommend ¶
func (d *Dao) Recommend(c context.Context, mid int64, isOversea int32) (rec []*tag.Channel, err error)
Recommend func
func (*Dao) Resources ¶
func (d *Dao) Resources(c context.Context, plat int8, id, mid int64, name, buvid string, build, requestCnt, loginEvent, displayID int) (res *tag.ChannelResource, err error)
Resources channel resources aids
func (*Dao) Square ¶
func (d *Dao) Square(c context.Context, mid int64, tagNum, oidNum, build int, loginEvent int32, plat int8, buvid string, isOversea int32) (square *tag.ChannelSquare, err error)
Square 频道广场页推荐频道+稿件
func (*Dao) Subscribe ¶
func (d *Dao) Subscribe(c context.Context, mid int64) (customSort *tag.CustomSortChannel, err error)
Subscribe 已订阅频道
func (*Dao) SubscribeAdd ¶
SubscribeAdd subscribe add
func (*Dao) SubscribeCancel ¶
SubscribeCancel subscribe add
Click to show internal directories.
Click to hide internal directories.