Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetFeedVideoReq ¶
type GetFeedVideoResp ¶
type GetPublishListReq ¶
type GetPublishListResp ¶
type PublishRequest ¶
type PublishRequest struct { Data *multipart.FileHeader `json:"data" binding:"required" form:"data"` Title string `json:"title" binding:"required" form:"title"` }
type PublishResponse ¶
type Server ¶
type Server interface { // GetFeedVideo 获得30个视频 GetFeedVideo(context.Context, *GetFeedVideoReq) (*GetFeedVideoResp, error) // PublishAction 上传视频 PublishAction(*gin.Context, *PublishRequest) (*PublishResponse, error) // GetPublishList 获得用户所有投稿过的视频 GetPublishList(context.Context, GetPublishListReq) (GetPublishListResp, error) }
type User ¶
type User struct { ID int64 `json:"id"` Name string `json:"name"` FollowCount int64 `json:"follow_count"` FollowerCount int64 `json:"follower_count"` IsFollow bool `json:"is_follow"` Avatar string `json:"avatar"` BackgroundImage string `json:"background_image"` Signature string `json:"signature"` TotalFavorited int64 `json:"total_favorited"` WorkCount int64 `json:"work_count"` FavoriteCount int64 `json:"favorite_count"` }
type Video ¶
type Video struct { ID int64 `json:"id"` Author *User `json:"author"` PlayUrl string `json:"play_url"` CoverUrl string `json:"cover_url"` FavoriteCount int64 `json:"favorite_count"` CommentCount int64 `json:"comment_count"` IsFavorite bool `json:"is_favorite"` Title string `json:"title"` PublishTime int64 }
Click to show internal directories.
Click to hide internal directories.