feat: add popularity data for live

This commit is contained in:
lilong.129
2023-05-04 19:34:42 +08:00
parent 038f4171ba
commit 5d9fa3c91e
2 changed files with 39 additions and 18 deletions

View File

@@ -49,10 +49,11 @@ func WithThreshold(threshold float64) CVOption {
}
type Popularity struct {
Stars string `json:"stars"` // 点赞数
Comments string `json:"comments"` // 评论数
Favorites string `json:"favorites"` // 收藏数
Shares string `json:"shares"` // 分享数
Stars string `json:"stars,omitempty"` // 点赞数
Comments string `json:"comments,omitempty"` // 评论数
Favorites string `json:"favorites,omitempty"` // 收藏数
Shares string `json:"shares,omitempty"` // 分享数
LiveUsers string `json:"live_users,omitempty"` // 直播间人数
}
type OcrResult struct {