Documentation ¶
Index ¶
- Constants
- type Service
- func (s *Service) DefaultWords(c context.Context, mid int64, build, from int, ...) (res *search.DefaultWords, err error)
- func (s *Service) HotSearch(c context.Context, buvid string, mid int64, build, limit int, ...) (res *search.Hot)
- func (s *Service) Recommend(c context.Context, mid int64, build, from, show int, ...) (res *search.RecommendResult, err error)
- func (s *Service) RecommendNoResult(c context.Context, platform, mobiApp, device, buvid, keyword string, ...) (res *search.NoResultRcndResult, err error)
- func (s *Service) RecommendPre(c context.Context, platform, mobiApp, device, buvid string, build, ps int, ...) (res *search.RecommendPreResult, err error)
- func (s *Service) Resource(c context.Context, mobiApp, device, network, buvid, adExtra string, build int, ...) (res []*banner.Banner, err error)
- func (s *Service) Search(c context.Context, mid, zoneid int64, ...) (res *search.Result, err error)
- func (s *Service) SearchByType(c context.Context, mid, zoneid int64, ...) (res *search.TypeSearch, err error)
- func (s *Service) SearchEpisodes(c context.Context, mid, ssID int64) (res []*search.Item, err error)
- func (s *Service) SearchLive(c context.Context, mid int64, ...) (res *search.TypeSearch, err error)
- func (s *Service) SearchLiveAll(c context.Context, mid int64, ...) (res *search.TypeSearchLiveAll, err error)
- func (s *Service) Suggest(c context.Context, mid int64, buvid, keyword string, build int, ...) (res *search.Suggestion)
- func (s *Service) Suggest2(c context.Context, mid int64, platform, buvid, keyword string, build int, ...) (res *search.Suggestion2)
- func (s *Service) Suggest3(c context.Context, mid int64, platform, buvid, keyword, device string, ...) (res *search.SuggestionResult3)
- func (s *Service) User(c context.Context, mid int64, ...) (res *search.UserResult)
Constants ¶
View Source
const ( IPhoneSearchResourceID = 2447 AndroidSearchResourceID = 2450 IPadSearchResourceID = 2811 )
const for search
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is search service
func (*Service) DefaultWords ¶
func (s *Service) DefaultWords(c context.Context, mid int64, build, from int, buvid, platform, mobiApp, device string) (res *search.DefaultWords, err error)
DefaultWords search for default words
func (*Service) HotSearch ¶
func (s *Service) HotSearch(c context.Context, buvid string, mid int64, build, limit int, mobiApp, device, platform string, now time.Time) (res *search.Hot)
HotSearch is hot word search
func (*Service) Recommend ¶
func (s *Service) Recommend(c context.Context, mid int64, build, from, show int, buvid, platform, mobiApp, device string) (res *search.RecommendResult, err error)
Recommend search recommend
func (*Service) RecommendNoResult ¶
func (s *Service) RecommendNoResult(c context.Context, platform, mobiApp, device, buvid, keyword string, build, pn, ps int, mid int64) (res *search.NoResultRcndResult, err error)
RecommendNoResult search when no result
func (*Service) RecommendPre ¶
func (s *Service) 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 (*Service) Resource ¶
func (s *Service) Resource(c context.Context, mobiApp, device, network, buvid, adExtra string, build int, plat int8, mid int64) (res []*banner.Banner, err error)
Resource for rsource
func (*Service) Search ¶
func (s *Service) Search(c context.Context, mid, zoneid int64, mobiApp, device, platform, buvid, keyword, duration, order, filtered, lang, fromSource, recommend, parent string, plat int8, rid, highlight, build, pn, ps, isQuery int, old bool, now time.Time) (res *search.Result, err error)
Search get all type search data.
func (*Service) SearchByType ¶
func (s *Service) SearchByType(c context.Context, mid, zoneid int64, mobiApp, device, platform, buvid, sType, keyword, filtered, order string, plat int8, build, highlight, categoryID, userType, orderSort, pn, ps int, old bool, now time.Time) (res *search.TypeSearch, err error)
SearchByType is tag bangumi movie upuser video search
func (*Service) SearchEpisodes ¶
func (s *Service) SearchEpisodes(c context.Context, mid, ssID int64) (res []*search.Item, err error)
SearchEpisodes search PGC episodes
func (*Service) SearchLive ¶
func (s *Service) SearchLive(c context.Context, mid int64, mobiApp, platform, buvid, device, sType, keyword, order string, build, pn, ps int) (res *search.TypeSearch, err error)
SearchLive is search live
func (*Service) SearchLiveAll ¶
func (s *Service) SearchLiveAll(c context.Context, mid int64, mobiApp, platform, buvid, device, sType, keyword, order string, build, pn, ps int) (res *search.TypeSearchLiveAll, err error)
SearchLiveAll is search live
func (*Service) Suggest ¶
func (s *Service) Suggest(c context.Context, mid int64, buvid, keyword string, build int, mobiApp, device string, now time.Time) (res *search.Suggestion)
Suggest for search suggest
func (*Service) Suggest2 ¶
func (s *Service) Suggest2(c context.Context, mid int64, platform, buvid, keyword string, build int, mobiApp string, now time.Time) (res *search.Suggestion2)
Suggest2 for search suggest
Click to show internal directories.
Click to hide internal directories.