Discover Packages
gitee.com/Whitroom/imitate-tiktok
common
response
package
Version:
v0.0.0-...-3ac9adb
Opens a new window with list of versions in this module.
Published: Jun 17, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
SUCCESS = iota
WRONGTOKEN
BADREQUEST
NOTFOUND
INTERNALERROR
)
type CommentListResponse struct {
}
type CommentResponse struct {
}
type FeedResponse struct {
Response
VideoList []Video `json:"video_list,omitempty"`
NextTime int64 `json:"next_time,omitempty"`
}
type Response struct {
StatusCode int32 `json:"status_code"`
StatusMsg string `json:"status_msg,omitempty"`
}
type User struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
FollowCount int64 `json:"follow_count"`
FollowerCount int64 `json:"follower_count"`
IsFollow bool `json:"is_follow"`
}
type UserListResponse struct {
Response
UserList []User `json:"user_list"`
}
type UserLoginResponse struct {
Response
UserID int64 `json:"user_id,omitempty"`
Token string `json:"token"`
}
type UserResponse struct {
Response
User User `json:"user"`
}
type Video struct {
ID int64 `json:"id,omitempty"`
Author User `json:"author"`
PlayUrl string `json:"play_url,omitempty"`
CoverUrl string `json:"cover_url,omitempty"`
FavoriteCount int64 `json:"favorite_count,"`
IsFavorite bool `json:"is_favorite"`
}
type VideoListResponse struct {
Response
VideoList []Video `json:"video_list"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.