LoginReqLoginAndRegisterRsprequest definition
type LoginReq struct {
Phone string `json:"phone"`
Password string `json:"password"`
Code string `json:"code"`
Login_type int32 `json:"login_type"`
Login_ip string `json:"login_ip"`
}
response definition
type LoginAndRegisterRsp struct {
Token string `json:"token"`
Expire int64 `json:"expire"`
}
RegisterReqLoginAndRegisterRsprequest definition
type RegisterReq struct {
Phone string `json:"phone"`
Nickname string `json:"nickname"`
Password string `json:"password"`
Avatar string `json:"avatar"`
Sex int32 `json:"sex"`
Username string `json:"username"`
Code string `json:"code"`
}
response definition
type LoginAndRegisterRsp struct {
Token string `json:"token"`
Expire int64 `json:"expire"`
}
GetFollowingReqGetFollowingResrequest definition
type GetFollowingReq struct {
User_id int64 `json:"user_id"`
Page_size int32 `json:"page_size"`
Page int32 `json:"page"`
Query_user_id int64 `json:"query_user_id"`
}
response definition
type GetFollowingRes struct {
List []FollowUserInfo `json:"list"`
Total int64 `json:"total"`
}
FindUserReqFindUserResprequest definition
type FindUserReq struct {
Username string `json:"username"`
Phone string `json:"phone"`
Ids []int64 `json:"ids"`
}
response definition
type FindUserResp struct {
User_list []UserInfo `json:"user_list"`
}
FollowUserReqFollowUserResrequest definition
type FollowUserReq struct {
User_id int64 `json:"user_id"`
Follow_user_id int64 `json:"follow_user_id"`
}
response definition
type FollowUserRes struct {
Success bool `json:"success"`
}
GetFollowReqGetFollowResrequest definition
type GetFollowReq struct {
User_id int64 `json:"user_id"`
Page_size int32 `json:"page_size"`
Page int32 `json:"page"`
Query_user_id int64 `json:"query_user_id"`
}
response definition
type GetFollowRes struct {
List []FollowUserInfo `json:"list"`
Total int64 `json:"total"`
}
GetUserInfoReqGetUserInfoResprequest definition
type GetUserInfoReq struct {
User_id int64 `json:"user_id"`
Query_user_id int64 `json:"query_user_id"`
}
response definition
type GetUserInfoResp struct {
Id int64 `json:"id"`
Avatar string `json:"avatar"`
Nickname string `json:"nickname"`
Sex int32 `json:"sex"`
Is_follow bool `json:"is_follow"`
}
GetUserProfileReqGetUserProfileResrequest definition
type GetUserProfileReq struct {
User_id int64 `json:"user_id"`
}
response definition
type GetUserProfileRes struct {
Id int64 `json:"id"`
Nickname string `json:"nickname"`
Username string `json:"username"`
Status int32 `json:"status"`
Avatar string `json:"avatar"`
Phone string `json:"phone"`
Tweet_count int32 `json:"tweet_count"`
Is_following bool `json:"is_following"`
Created_on int64 `json:"created_on"`
Follows int64 `json:"follows"`
Fans int64 `json:"fans"`
Get_likes_count int32 `json:"get_likes_count"`
Get_collection_count int32 `json:"get_collection_count"`
Sex int32 `json:"sex"`
}
SearchUsernameReqSearchUsernameResrequest definition
type SearchUsernameReq struct {
Keyword string `json:"keyword"`
Page int32 `json:"page"`
Page_size int32 `json:"page_size"`
User_id int64 `json:"user_id"`
}
response definition
type SearchUsernameRes struct {
List []SearchUsernameItem `json:"list"`
Total int64 `json:"total"`
}
UnFollowUserReqUnFollowUserResrequest definition
type UnFollowUserReq struct {
User_id int64 `json:"user_id"`
Un_follow_user_id int64 `json:"un_follow_user_id"`
}
response definition
type UnFollowUserRes struct {
Success bool `json:"success"`
}
CommentDeleteReqCommentDeleteRsprequest definition
type CommentDeleteReq struct {
User_id int64 `json:"user_id"`
Comment_id int64 `json:"comment_id"`
Comment_type int32 `json:"comment_type"`
}
response definition
type CommentDeleteRsp struct {
Success bool `json:"success"`
}
PostCollectionReqPostCollectionRsprequest definition
type PostCollectionReq struct {
Post_id int64 `json:"post_id"`
User_id int64 `json:"user_id"`
}
response definition
type PostCollectionRsp struct {
Success bool `json:"success"`
}
PostCommentReqPostCommentRsprequest definition
type PostCommentReq struct {
Post_id int64 `json:"post_id"`
User_id int64 `json:"user_id"`
Content string `json:"content"`
Image string `json:"image"`
At_user_id int64 `json:"at_user_id"`
Ip string `json:"ip"`
Ip_loc string `json:"ip_loc"`
}
response definition
type PostCommentRsp struct {
Comment_id int64 `json:"comment_id"`
}
PostCommentUpvoteReqPostCommentUpvoteRsprequest definition
type PostCommentUpvoteReq struct {
User_id int64 `json:"user_id"`
Comment_id int64 `json:"comment_id"`
Comment_type int32 `json:"comment_type"`
}
response definition
type PostCommentUpvoteRsp struct {
Success bool `json:"success"`
}
CreatePostReqCreatePostRsprequest definition
type CreatePostReq struct {
User_id int64 `json:"user_id"`
Title string `json:"title"`
Content string `json:"content"`
Tags []CreateTag `json:"tags"`
At_user_ids []int64 `json:"at_user_ids"`
Post_type int32 `json:"post_type"`
Visibility int32 `json:"visibility"`
Images []string `json:"images"`
Video_cover string `json:"video_cover"`
Video_url string `json:"video_url"`
Ip string `json:"ip"`
Ip_loc string `json:"ip_loc"`
}
response definition
type CreatePostRsp struct {
Post_id int64 `json:"post_id"`
}
PostDeleteReqPostDeleteRsprequest definition
type PostDeleteReq struct {
User_id int64 `json:"user_id"`
Post_id int64 `json:"post_id"`
}
response definition
type PostDeleteRsp struct {
Success bool `json:"success"`
}
PostReplyReqPostReplyRsprequest definition
type PostReplyReq struct {
Post_id int64 `json:"post_id"`
User_id int64 `json:"user_id"`
Content string `json:"content"`
Image string `json:"image"`
At_user_id int64 `json:"at_user_id"`
Ip string `json:"ip"`
Ip_loc string `json:"ip_loc"`
Comment_id int64 `json:"comment_id"`
To_reply_id int64 `json:"to_reply_id"`
}
response definition
type PostReplyRsp struct {
Reply_id int64 `json:"reply_id"`
}
PostShareReqPostShareRsprequest definition
type PostShareReq struct {
Post_id int64 `json:"post_id"`
User_id int64 `json:"user_id"`
}
response definition
type PostShareRsp struct {
Success bool `json:"success"`
}
PostUpvoteReqPostUpvoteRsprequest definition
type PostUpvoteReq struct {
Post_id int64 `json:"post_id"`
User_id int64 `json:"user_id"`
}
response definition
type PostUpvoteRsp struct {
Success bool `json:"success"`
}
GetPostReqGetPostRsprequest definition
type GetPostReq struct {
User_id int64 `json:"user_id"`
Post_id int64 `json:"post_id"`
}
response definition
type GetPostRsp struct {
Id int64 `json:"id"`
User UserInfo `json:"user"`
Title string `json:"title"`
Content_summary string `json:"content_summary"`
Post_type int32 `json:"post_type"`
Comment_count int64 `json:"comment_count"`
Upvote_count int64 `json:"upvote_count"`
Collection_count int64 `json:"collection_count"`
Share_count int64 `json:"share_count"`
Visibility int32 `json:"visibility"`
Ip_loc string `json:"ip_loc"`
Hot_num int64 `json:"hot_num"`
Images []string `json:"images"`
Video_url string `json:"video_url"`
Video_cover string `json:"video_cover"`
Content string `json:"content"`
Created_on int64 `json:"created_on"`
Tags []TagItem `json:"tags"`
With_user []UserInfo `json:"with_user"`
Latest_replied_on int64 `json:"latest_replied_on"`
Is_liked bool `json:"is_liked"`
Is_collected bool `json:"is_collected"`
Is_mine bool `json:"is_mine"`
}
type UserInfo struct {
Id int64 `json:"id"`
Avatar string `json:"avatar"`
Nickname string `json:"nickname"`
Sex int32 `json:"sex"`
}
GetPostCommentListReqGetPostCommentListRsprequest definition
type GetPostCommentListReq struct {
Page int32 `json:"page"`
Page_size int32 `json:"page_size"`
Post_id int64 `json:"post_id"`
User_id int64 `json:"user_id"`
}
response definition
type GetPostCommentListRsp struct {
List []CommentItem `json:"list"`
Total int64 `json:"total"`
}
GetPostListReqGetPostListRsprequest definition
type GetPostListReq struct {
Page int32 `json:"page"`
Page_size int32 `json:"page_size"`
Search_type int32 `json:"search_type"`
Sort_type int32 `json:"sort_type"`
Keyword string `json:"keyword"`
User_id int64 `json:"user_id"`
}
response definition
type GetPostListRsp struct {
List []GetPostListItem `json:"list"`
Total int64 `json:"total"`
}
GetReplyListReqGetReplyListRsprequest definition
type GetReplyListReq struct {
Page int32 `json:"page"`
Page_size int32 `json:"page_size"`
Comment_id int64 `json:"comment_id"`
User_id int64 `json:"user_id"`
}
response definition
type GetReplyListRsp struct {
List []RepliesItem `json:"list"`
Total int64 `json:"total"`
}
GetTagReqGetTagRsprequest definition
type GetTagReq struct {
Tag_id int64 `json:"tag_id"`
User_id int64 `json:"user_id"`
}
response definition
type GetTagRsp struct {
Name string `json:"name"`
Hot_num int64 `json:"hot_num"`
User UserInfo `json:"user"`
Id int64 `json:"id"`
Created_on int64 `json:"created_on"`
Post_count int64 `json:"post_count"`
Follow_count int64 `json:"follow_count"`
Is_followed bool `json:"is_followed"`
}
type UserInfo struct {
Id int64 `json:"id"`
Avatar string `json:"avatar"`
Nickname string `json:"nickname"`
Sex int32 `json:"sex"`
}
GetTagListReqGetTagListRsprequest definition
type GetTagListReq struct {
Page int32 `json:"page"`
Page_size int32 `json:"page_size"`
Tag_name string `json:"tag_name"`
Sort_by int32 `json:"sort_by"`
}
response definition
type GetTagListRsp struct {
Tag_list []TagItem `json:"tag_list"`
Total int32 `json:"total"`
}
GetUserPostCollectionListReqGetUserPostCollectionListRsprequest definition
type GetUserPostCollectionListReq struct {
User_id int64 `json:"user_id"`
Page int64 `json:"page"`
Page_size int64 `json:"page_size"`
Query_user_id int64 `json:"query_user_id"`
}
response definition
type GetUserPostCollectionListRsp struct {
List []GetPostListItem `json:"list"`
Total int64 `json:"total"`
}
GetUserPostLikeListReqGetUserPostLikeListRsprequest definition
type GetUserPostLikeListReq struct {
User_id int64 `json:"user_id"`
Page int64 `json:"page"`
Page_size int64 `json:"page_size"`
Query_user_id int64 `json:"query_user_id"`
}
response definition
type GetUserPostLikeListRsp struct {
List []GetPostListItem `json:"list"`
Total int64 `json:"total"`
}
GetUserPostListReqGetUserPostListRsprequest definition
type GetUserPostListReq struct {
User_id int64 `json:"user_id"`
Page int64 `json:"page"`
Page_size int64 `json:"page_size"`
Query_user_id int64 `json:"query_user_id"`
}
response definition
type GetUserPostListRsp struct {
List []GetPostListItem `json:"list"`
Total int64 `json:"total"`
}