Documentation ¶
Index ¶
- func ConfigHeader(req *http.Request)
- func DownloadDir() string
- func GetAttentionUp() []*common.VideoModel
- func GetFavorDetail(favorId int, offset int) ([]*common.VideoModel, error)
- func GetFavorList() []*common.VideoModel
- func GetHts() string
- func GetRecommend() []*common.VideoModel
- func ParseVideoDetail(vs []*model.ZyVideo) []*common.VideoModel
- func SaveKey(url string) []byte
- func TrimTitle(title string) string
- type FavorDetailReq
- type FavorListReq
- type FavorListRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigHeader ¶
func DownloadDir ¶
func DownloadDir() string
func GetFavorDetail ¶
func GetFavorDetail(favorId int, offset int) ([]*common.VideoModel, error)
func GetFavorList ¶
func GetFavorList() []*common.VideoModel
func ParseVideoDetail ¶
func ParseVideoDetail(vs []*model.ZyVideo) []*common.VideoModel
Types ¶
type FavorDetailReq ¶
type FavorDetailReq struct { ID int `json:"id"` HModel string `json:"h_model"` HCh string `json:"h_ch"` HApp string `json:"h_app"` CTypes []int `json:"c_types"` HTs int64 `json:"h_ts"` HAv string `json:"h_av"` HNt int `json:"h_nt"` HDid string `json:"h_did"` Offset int `json:"offset"` HOs int `json:"h_os"` HM int `json:"h_m"` Token string `json:"token"` HDt int `json:"h_dt"` }
type FavorListReq ¶
type FavorListReq struct { HModel string `json:"h_model"` HCh string `json:"h_ch"` HApp string `json:"h_app"` CTypes []int `json:"c_types"` HTs int64 `json:"h_ts"` HAv string `json:"h_av"` HNt int `json:"h_nt"` HDid string `json:"h_did"` T int `json:"t"` HM int `json:"h_m"` HOs int `json:"h_os"` Token string `json:"token"` HDt int `json:"h_dt"` }
type FavorListRes ¶
type FavorListRes struct { Ret int `json:"ret"` Data struct { List []struct { ID int `json:"id"` Mid int `json:"mid"` Name string `json:"name"` Ct int `json:"ct"` Ut int `json:"ut"` PostCount int `json:"post_count"` } `json:"list"` More int `json:"more"` T int `json:"t"` } `json:"data"` }
func GetFavorGroupList ¶
func GetFavorGroupList() (*FavorListRes, error)
Click to show internal directories.
Click to hide internal directories.