Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

收藏夹内容详情返回添加视频cid、补充了一下GetFavourInfoParam的注释 #79

Merged
merged 2 commits into from
Sep 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fav.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,13 @@ type FavourInfo struct {
BvId string `json:"bv_id"`
Bvid string `json:"bvid"`
Season any `json:"season"`
Ugc struct {
FirstCid int `json:"first_cid"` // 视频cid
} `json:"ugc"`
}

type GetFavourInfoParam struct {
Resources []string `json:"resources"` // 目标内容id列表。格式:{内容id}:{内容类型}。类型:2:视频稿件。12:音频。21:视频合集。内容id:视频稿件:视频稿件avid。音频:音频auid。视频合集:视频合集id
Resources []string `json:"resources"` // 目标内容id列表。格式:{内容id}:{内容类型}。类型:2:视频稿件。12:音频。21:视频合集。内容id:视频稿件:视频稿件avid。音频:音频auid。视频合集:视频合集id。注意:一次最多只能请求100个内容id,超过100个内容id将不放回数据。
Platform string `json:"platform,omitempty" request:"query,omitempty"` // 平台标识。可为web(影响内容列表类型)
}

Expand Down Expand Up @@ -283,6 +286,9 @@ type FavourList struct {
FavTime int `json:"fav_time"` // 收藏时间戳
BvId string `json:"bv_id"` // 视频稿件bvid
Bvid string `json:"bvid"` // 视频稿件bvid
Ugc struct {
FirstCid int `json:"first_cid"` // 视频cid
} `json:"ugc"`
} `json:"medias"`
HasMore bool `json:"has_more"`
}
Expand Down
Loading