package proto import "time" type SearchSortType string const ( SearchSortTypeDefault SearchSortType = "default" // 默认 相似度 SearchSortTypeHot SearchSortType = "hot" // 热度排序 SearchSortTypeNew SearchSortType = "new" // 最新排序 ) // RankType 排行榜类型 type RankType int64 const ( RankType_Video = 1 // 视频 RankType_Actress = 2 // 女优 RankType_Filmreview = 3 // 影评 ) // RankPeriod 排行榜周期 type RankPeriod int64 const ( RankPeriod_Week RankPeriod = 1 RankPeriod_Month RankPeriod = 2 RankPeriod_Year RankPeriod = 3 ) type SearchRankHtmlData struct { Path string `json:"path"` CompletePath string `json:"completePath" form:"completePath"` Translations AppTranslationInfo `json:"translations" form:"translations"` // 导航 BottonTranslations AppTranslationInfo `json:"bottonTranslations" form:"bottonTranslations"` // 底部导航 Config ConfigInfo `json:"config" form:"config"` // 配置文件 Advitise AdvitiseData `json:"advitise" form:"advitise"` // 广告 VideoWeek SearchRankData `json:"videoWeek"` ActressWeek SearchRankData `json:"actressWeek"` FilmreviewWeek SearchRankData `json:"filmreviewWeek"` VideoMonth SearchRankData `json:"videoMonth"` ActressMonth SearchRankData `json:"actressMonth"` FilmreviewMonth SearchRankData `json:"filmreviewMonth"` VideoYear SearchRankData `json:"videoYear"` ActressYear SearchRankData `json:"actressYear"` FilmreviewYear SearchRankData `json:"filmreviewYear"` } type SearchRankData struct { RankName string `json:"rankName" form:"rankName"` // 排行榜名字 RankType RankType `json:"rankType" form:"rankType"` // 排行榜类型 1视频, 2女优 ,3影评 RankPeriod RankPeriod `json:"rankPeriod" form:"rankPeriod"` // 排行榜周期 1=周 2=月 3=年 List []HotSearchItem `json:"list" form:"list"` } type HotSearchItem struct { Id int64 `json:"id" form:"id"` // ID Title string `json:"title" form:"title"` //标题 HotValue int64 `json:"hotValue" form:"hotValue"` // 热度值 Images string `json:"images" form:"images"` // 封面 Works int64 `json:"works" bson:"works,omitempty"` // 作品数量 Desc string `json:"desc" bson:"desc"` // 描述 AddedTime time.Time `json:"addedTime" bson:"addedTime"` // 上架shi时间 } type SearchResp struct { Path string `json:"path"` CompletePath string `json:"completePath" form:"completePath"` InTitle string `json:"inTitle"` //输入标题 InType int64 `json:"inType"` // 输入类型 0=视频 1=女优 2=影评 3=帖子 PageNum int64 `json:"pageNum" form:"pageNum"` PageSize int64 `json:"pageSize" form:"pageSize"` TotalSize int64 `json:"totalSize" form:"totalSize"` Advitise AdvitiseData `json:"advitise" form:"advitise"` // 广告 Translations AppTranslationInfo `json:"translations" form:"translations"` // 导航 BottonTranslations AppTranslationInfo `json:"bottonTranslations" form:"bottonTranslations"` // 底部导航 HotSearch []*HotSearchItem `json:"hotSearch" form:"hotSearch"` // 热搜 Sort []SearchSortItem `json:"sorts"` // 排序选项 SearchRecommend []string `json:"searchRecommend"` // 搜索推荐 Config ConfigInfo `json:"config" form:"config"` // 配置文件 } type SearchSortItem struct { Key string `json:"key"` // 值 Title string `json:"title"` // 标题 }