api

package
v0.0.0-...-78d0e39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigHeader

func ConfigHeader(req *http.Request)

func DownloadDir

func DownloadDir() string

func GetAttentionUp

func GetAttentionUp() []*common.VideoModel

关注

func GetFavorDetail

func GetFavorDetail(favorId int, offset int) ([]*common.VideoModel, error)

func GetFavorList

func GetFavorList() []*common.VideoModel

func GetHts

func GetHts() string

func GetRecommend

func GetRecommend() []*common.VideoModel

推荐

func ParseVideoDetail

func ParseVideoDetail(vs []*model.ZyVideo) []*common.VideoModel

func SaveKey

func SaveKey(url string) []byte

func TrimTitle

func TrimTitle(title string) string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL