Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Id int64 `json:"id,omitempty"` User User `json:"user"` Content string `json:"content,omitempty"` CreateDate string `json:"create_date,omitempty"` }
Comment 评论的字段
type User ¶
type User struct { Id int64 `json:"id,omitempty"` // 用户id Name string `json:"name,omitempty"` // 用户名称 FollowCount int64 `json:"follow_count,omitempty"` // 粉丝总数 FollowerCount int64 `json:"follower_count,omitempty"` // 粉丝总数 IsFollow bool `json:"is_follow,omitempty"` // true-已关注,false-未关注 }
User 用户信息列表
type UserLoginResponse ¶
type UserLoginResponse struct { app.Response UserId int64 `json:"user_id,omitempty"` Token string `json:"token"` }
UserLoginResponse 用于登陆/注册返回的结构体
type Video ¶
type Video struct { Id int64 `json:"id,omitempty"` Title string `json:"title"` Author User `json:"author"` PlayUrl string `json:"play_url" json:"play_url,omitempty"` CoverUrl string `json:"cover_url,omitempty"` FavoriteCount int64 `json:"favorite_count,omitempty"` CommentCount int64 `json:"comment_count,omitempty"` IsFavorite bool `json:"is_favorite,omitempty"` }
Video 影音视频字段
Click to show internal directories.
Click to hide internal directories.