Videos API

This commit is contained in:
2025-02-08 15:11:52 +08:00
parent b756a9f19c
commit 59f0288c27
3 changed files with 227 additions and 0 deletions

View File

@ -13,6 +13,7 @@ const (
PostTypeStory = "story"
PostTypeArticle = "article"
PostTypeQuestion = "question"
PostTypeVideo = "video"
)
type PostVisibilityLevel = int8
@ -88,6 +89,17 @@ type PostQuestionBody struct {
Reward float64 `json:"reward"`
}
type PostVideoBody struct {
Thumbnail *string `json:"thumbnail"`
Title string `json:"title"`
Description *string `json:"description"`
Location *string `json:"location"`
Video string `json:"video"`
IsLive bool `json:"is_live"`
IsLiveEnded bool `json:"is_live_ended"`
Subtitles map[string]string `json:"subtitles"`
}
type PostInsight struct {
cruda.BaseModel