Documentation ¶
Index ¶
- type Dao
- func (d *Dao) ArticleByType(c context.Context, mid, zoneid int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) Channel(c context.Context, mid int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) DefaultWords(c context.Context, mid int64, build, from int, ...) (res *search.DefaultWords, err error)
- func (d *Dao) HotSearch(c context.Context, buvid string, mid int64, build, limit int, ...) (res *search.Hot, err error)
- func (d *Dao) Live(c context.Context, mid int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) LiveAll(c context.Context, mid int64, ...) (st *search.TypeSearchLiveAll, err error)
- func (d *Dao) LiveByType(c context.Context, mid, zoneid int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) MovieByType(c context.Context, mid, zoneid int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) MovieByType2(c context.Context, mid int64, keyword, mobiApp, device, platform, buvid string, ...) (st *search.TypeSearch, err error)
- func (d *Dao) Recommend(c context.Context, mid int64, build, from, show int, ...) (res *search.RecommendResult, err error)
- func (d *Dao) RecommendNoResult(c context.Context, platform, mobiApp, device, buvid, keyword string, ...) (res *search.NoResultRcndResult, err error)
- func (d *Dao) RecommendPre(c context.Context, platform, mobiApp, device, buvid string, build, ps int, ...) (res *search.RecommendPreResult, err error)
- func (d *Dao) Search(c context.Context, mid, zoneid int64, ...) (res *search.Search, code int, err error)
- func (d *Dao) Season(c context.Context, mid, zoneID int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) Season2(c context.Context, mid int64, keyword, mobiApp, device, platform, buvid string, ...) (st *search.TypeSearch, err error)
- func (d *Dao) Suggest(c context.Context, mid int64, buvid, term string, build int, ...) (res *search.Suggest, err error)
- func (d *Dao) Suggest2(c context.Context, mid int64, platform, buvid, term string, build int, ...) (res *search.Suggest2, err error)
- func (d *Dao) Suggest3(c context.Context, mid int64, platform, buvid, term, device string, ...) (res *search.Suggest3, err error)
- func (d *Dao) Upper(c context.Context, mid int64, ...) (st *search.TypeSearch, err error)
- func (d *Dao) User(c context.Context, mid int64, ...) (user []*search.User, err error)
- func (d *Dao) Video(c context.Context, mid int64, keyword, mobiApp, device, platform, buvid string, ...) (st *search.TypeSearch, 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 search dao
func (*Dao) ArticleByType ¶
func (d *Dao) ArticleByType(c context.Context, mid, zoneid int64, keyword, mobiApp, device, platform, buvid, filtered, order, sType string, plat int8, categoryID, build, highlight, pn, ps int, now time.Time) (st *search.TypeSearch, err error)
ArticleByType search article.
func (*Dao) Channel ¶
func (d *Dao) Channel(c context.Context, mid int64, keyword, mobiApp, platform, buvid, device, order, sType string, build, pn, ps, highlight int) (st *search.TypeSearch, err error)
Channel for search channel
func (*Dao) DefaultWords ¶
func (d *Dao) DefaultWords(c context.Context, mid int64, build, from int, buvid, platform, mobiApp, device string) (res *search.DefaultWords, err error)
DefaultWords is default words search data.
func (*Dao) HotSearch ¶
func (d *Dao) HotSearch(c context.Context, buvid string, mid int64, build, limit int, mobiApp, device, platform string, now time.Time) (res *search.Hot, err error)
HotSearch is hot words search data.
func (*Dao) Live ¶
func (d *Dao) Live(c context.Context, mid int64, keyword, mobiApp, platform, buvid, device, order, sType string, build, pn, ps int) (st *search.TypeSearch, err error)
Live search for live
func (*Dao) LiveAll ¶
func (d *Dao) LiveAll(c context.Context, mid int64, keyword, mobiApp, platform, buvid, device, order, sType string, build, pn, ps int) (st *search.TypeSearchLiveAll, err error)
LiveAll search for live version > 5.28
func (*Dao) LiveByType ¶
func (d *Dao) LiveByType(c context.Context, mid, zoneid int64, keyword, mobiApp, device, platform, buvid, filtered, order, sType string, plat int8, build, pn, ps int, now time.Time) (st *search.TypeSearch, err error)
LiveByType search by diff type
func (*Dao) MovieByType ¶
func (d *Dao) MovieByType(c context.Context, mid, zoneid int64, keyword, mobiApp, device, platform, buvid, filtered string, plat int8, build, pn, ps int, now time.Time) (st *search.TypeSearch, err error)
MovieByType search movie data from api .
func (*Dao) MovieByType2 ¶
func (d *Dao) MovieByType2(c context.Context, mid int64, keyword, mobiApp, device, platform, buvid string, highlight, build, pn, ps int) (st *search.TypeSearch, err error)
MovieByType2 search new movie data from api .
func (*Dao) Recommend ¶
func (d *Dao) Recommend(c context.Context, mid int64, build, from, show int, buvid, platform, mobiApp, device string) (res *search.RecommendResult, err error)
Recommend is recommend search data.
func (*Dao) RecommendNoResult ¶
func (d *Dao) RecommendNoResult(c context.Context, platform, mobiApp, device, buvid, keyword string, build, pn, ps int, mid int64) (res *search.NoResultRcndResult, err error)
RecommendNoResult is no result recommend search data.
func (*Dao) RecommendPre ¶
func (d *Dao) RecommendPre(c context.Context, platform, mobiApp, device, buvid string, build, ps int, mid int64) (res *search.RecommendPreResult, err error)
RecommendPre search at pre-page
func (*Dao) Search ¶
func (d *Dao) Search(c context.Context, mid, zoneid int64, mobiApp, device, platform, buvid, keyword, duration, order, filtered, fromSource, recommend, parent string, plat int8, seasonNum, movieNum, upUserNum, uvLimit, userNum, userVideoLimit, biliUserNum, biliUserVideoLimit, rid, highlight, build, pn, ps, isQuery int, old bool, now time.Time, newPGC, flow bool) (res *search.Search, code int, err error)
Search app all search .
func (*Dao) Season ¶
func (d *Dao) Season(c context.Context, mid, zoneID int64, keyword, mobiApp, device, platform, buvid, filtered string, plat int8, build, pn, ps int, now time.Time) (st *search.TypeSearch, err error)
Season search season data.
func (*Dao) Season2 ¶
func (d *Dao) Season2(c context.Context, mid int64, keyword, mobiApp, device, platform, buvid string, highlight, build, pn, ps int) (st *search.TypeSearch, err error)
Season2 search new season data.
func (*Dao) Suggest ¶
func (d *Dao) Suggest(c context.Context, mid int64, buvid, term string, build int, mobiApp, device string, now time.Time) (res *search.Suggest, err error)
Suggest suggest data.
func (*Dao) Suggest2 ¶
func (d *Dao) Suggest2(c context.Context, mid int64, platform, buvid, term string, build int, mobiApp string, now time.Time) (res *search.Suggest2, err error)
Suggest2 suggest data.
func (*Dao) Suggest3 ¶
func (d *Dao) Suggest3(c context.Context, mid int64, platform, buvid, term, device string, build, highlight int, mobiApp string, now time.Time) (res *search.Suggest3, err error)
Suggest3 suggest data.
func (*Dao) Upper ¶
func (d *Dao) Upper(c context.Context, mid int64, keyword, mobiApp, device, platform, buvid, filtered, order string, biliUserVL, highlight, build, userType, orderSort, pn, ps int, old bool, now time.Time) (st *search.TypeSearch, err error)
Upper search upper data.