|
@@ -6,401 +6,383 @@ info (
|
|
|
version: "1.0.0"
|
|
version: "1.0.0"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+type BaseReturnData {
|
|
|
|
|
+ Data interface{} `json:"data"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type (
|
|
type (
|
|
|
UserEntity {
|
|
UserEntity {
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- avatar string `json:"avatar"`
|
|
|
|
|
- nickname string `json:"nickname"`
|
|
|
|
|
- username string `json:"username"`
|
|
|
|
|
- phone string `json:"phone"`
|
|
|
|
|
- status int32 `json:"status"`
|
|
|
|
|
- sex int32 `json:"sex"`
|
|
|
|
|
- follows int64 `json:"follows"`
|
|
|
|
|
- followings int64 `json:"followings"`
|
|
|
|
|
- get_likes_count int32 `json:"get_likes_count"`
|
|
|
|
|
- get_collection_count int32 `json:"get_collection_count"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ Avatar string `json:"avatar"`
|
|
|
|
|
+ Nickname string `json:"nickname"`
|
|
|
|
|
+ Username string `json:"username"`
|
|
|
|
|
+ Phone string `json:"phone"`
|
|
|
|
|
+ Status int32 `json:"status"`
|
|
|
|
|
+ Sex int32 `json:"sex"`
|
|
|
|
|
+ Follows int64 `json:"follows"`
|
|
|
|
|
+ Followings int64 `json:"followings"`
|
|
|
|
|
+ GetLikesCount int32 `json:"get_likes_count"`
|
|
|
|
|
+ GetCollectionCount int32 `json:"get_collection_count"`
|
|
|
}
|
|
}
|
|
|
UserInfo {
|
|
UserInfo {
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- avatar string `json:"avatar"`
|
|
|
|
|
- nickname string `json:"nickname"`
|
|
|
|
|
- sex int32 `json:"sex"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ Avatar string `json:"avatar"`
|
|
|
|
|
+ Nickname string `json:"nickname"`
|
|
|
|
|
+ Sex int32 `json:"sex"`
|
|
|
}
|
|
}
|
|
|
FollowUserInfo {
|
|
FollowUserInfo {
|
|
|
- user UserInfo `json:"user"`
|
|
|
|
|
- is_mutual_follow bool `json:"is_mutual_follow"`
|
|
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ IsMutualFollow bool `json:"is_mutual_follow"`
|
|
|
}
|
|
}
|
|
|
LoginAndRegisterRsp {
|
|
LoginAndRegisterRsp {
|
|
|
- token string `json:"token"`
|
|
|
|
|
- expire int64 `json:"expire"`
|
|
|
|
|
|
|
+ Token string `json:"token"`
|
|
|
|
|
+ Expire int64 `json:"expire"`
|
|
|
}
|
|
}
|
|
|
LoginReq {
|
|
LoginReq {
|
|
|
- phone string `json:"phone"`
|
|
|
|
|
- password string `json:"password"`
|
|
|
|
|
- code string `json:"code"`
|
|
|
|
|
- login_type int32 `json:"login_type"`
|
|
|
|
|
- login_ip string `json:"login_ip"`
|
|
|
|
|
|
|
+ Phone string `json:"phone"`
|
|
|
|
|
+ Password string `json:"password"`
|
|
|
|
|
+ Code string `json:"code"`
|
|
|
|
|
+ LoginType int32 `json:"login_type"`
|
|
|
|
|
+ LoginIp string `json:"login_ip"`
|
|
|
}
|
|
}
|
|
|
RegisterReq {
|
|
RegisterReq {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ 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"`
|
|
|
}
|
|
}
|
|
|
GetUserInfoReq {
|
|
GetUserInfoReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- query_user_id int64 `json:"query_user_id"`
|
|
|
|
|
|
|
+ QueryUserId int64 `json:"query_user_id"`
|
|
|
}
|
|
}
|
|
|
GetUserInfoResp {
|
|
GetUserInfoResp {
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- avatar string `json:"avatar"`
|
|
|
|
|
- nickname string `json:"nickname"`
|
|
|
|
|
- sex int32 `json:"sex"`
|
|
|
|
|
- is_follow bool `json:"is_follow"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ Avatar string `json:"avatar"`
|
|
|
|
|
+ Nickname string `json:"nickname"`
|
|
|
|
|
+ Sex int32 `json:"sex"`
|
|
|
|
|
+ IsFollow bool `json:"is_follow"`
|
|
|
}
|
|
}
|
|
|
FindUserReq {
|
|
FindUserReq {
|
|
|
- username string `json:"username"`
|
|
|
|
|
- phone string `json:"phone"`
|
|
|
|
|
- ids []int64 `json:"ids"`
|
|
|
|
|
|
|
+ Username string `json:"username"`
|
|
|
|
|
+ Phone string `json:"phone"`
|
|
|
|
|
+ Ids []int64 `json:"ids"`
|
|
|
}
|
|
}
|
|
|
FindUserResp {
|
|
FindUserResp {
|
|
|
- user_list []UserInfo `json:"user_list"`
|
|
|
|
|
|
|
+ UserList []UserInfo `json:"user_list"`
|
|
|
}
|
|
}
|
|
|
FollowUserReq {
|
|
FollowUserReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- follow_user_id int64 `json:"follow_user_id"`
|
|
|
|
|
|
|
+ FollowUserId int64 `json:"follow_user_id"`
|
|
|
}
|
|
}
|
|
|
FollowUserRes {
|
|
FollowUserRes {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
UnFollowUserReq {
|
|
UnFollowUserReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- un_follow_user_id int64 `json:"un_follow_user_id"`
|
|
|
|
|
|
|
+ UnFollowUserId int64 `json:"un_follow_user_id"`
|
|
|
}
|
|
}
|
|
|
UnFollowUserRes {
|
|
UnFollowUserRes {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
GetFollowingReq {
|
|
GetFollowingReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- page_size int32 `json:"page_size"`
|
|
|
|
|
- page int32 `json:"page"`
|
|
|
|
|
- query_user_id int64 `json:"query_user_id"`
|
|
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ QueryUserId int64 `json:"query_user_id"`
|
|
|
}
|
|
}
|
|
|
GetFollowingRes {
|
|
GetFollowingRes {
|
|
|
- list []FollowUserInfo `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []FollowUserInfo `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetFollowReq {
|
|
GetFollowReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- page_size int32 `json:"page_size"`
|
|
|
|
|
- page int32 `json:"page"`
|
|
|
|
|
- query_user_id int64 `json:"query_user_id"`
|
|
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ QueryUserId int64 `json:"query_user_id"`
|
|
|
}
|
|
}
|
|
|
GetFollowRes {
|
|
GetFollowRes {
|
|
|
- list []FollowUserInfo `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []FollowUserInfo `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetUserProfileReq {
|
|
GetUserProfileReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ UserId int64 `json:"user_id"`
|
|
|
}
|
|
}
|
|
|
GetUserProfileRes {
|
|
GetUserProfileRes {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ Nickname string `json:"nickname"`
|
|
|
|
|
+ Username string `json:"username"`
|
|
|
|
|
+ Status int32 `json:"status"`
|
|
|
|
|
+ Avatar string `json:"avatar"`
|
|
|
|
|
+ Phone string `json:"phone"`
|
|
|
|
|
+ TweetCount int32 `json:"tweet_count"`
|
|
|
|
|
+ IsFollowing bool `json:"is_following"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
|
|
+ Follows int64 `json:"follows"`
|
|
|
|
|
+ Fans int64 `json:"fans"`
|
|
|
|
|
+ GetLikesCount int32 `json:"get_likes_count"`
|
|
|
|
|
+ GetCollectionCount int32 `json:"get_collection_count"`
|
|
|
|
|
+ Sex int32 `json:"sex"`
|
|
|
}
|
|
}
|
|
|
SearchUsernameReq {
|
|
SearchUsernameReq {
|
|
|
- keyword string `json:"keyword"`
|
|
|
|
|
- page int32 `json:"page"`
|
|
|
|
|
- page_size int32 `json:"page_size"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ Keyword string `json:"keyword"`
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ UserId int64 `json:"user_id"`
|
|
|
}
|
|
}
|
|
|
SearchUsernameItem {
|
|
SearchUsernameItem {
|
|
|
- nickname string `json:"nickname"`
|
|
|
|
|
- avatar string `json:"avatar"`
|
|
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- sex int32 `json:"sex"`
|
|
|
|
|
- is_follow bool `json:"is_follow"`
|
|
|
|
|
|
|
+ Nickname string `json:"nickname"`
|
|
|
|
|
+ Avatar string `json:"avatar"`
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ Sex int32 `json:"sex"`
|
|
|
|
|
+ IsFollow bool `json:"is_follow"`
|
|
|
}
|
|
}
|
|
|
SearchUsernameRes {
|
|
SearchUsernameRes {
|
|
|
- list []SearchUsernameItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []SearchUsernameItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
CreateTag {
|
|
CreateTag {
|
|
|
- name string `json:"name"`
|
|
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
}
|
|
}
|
|
|
CreatePostReq {
|
|
CreatePostReq {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ Title string `json:"title"`
|
|
|
|
|
+ Content string `json:"content"`
|
|
|
|
|
+ Tags []CreateTag `json:"tags"`
|
|
|
|
|
+ AtUserIds []int64 `json:"at_user_ids"`
|
|
|
|
|
+ PostType int32 `json:"post_type"`
|
|
|
|
|
+ Visibility int32 `json:"visibility"`
|
|
|
|
|
+ Images []string `json:"images"`
|
|
|
|
|
+ VideoCover string `json:"video_cover"`
|
|
|
|
|
+ VideoUrl string `json:"video_url"`
|
|
|
|
|
+ Ip string `json:"ip"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
}
|
|
}
|
|
|
CreatePostRsp {
|
|
CreatePostRsp {
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
GetTagListReq {
|
|
GetTagListReq {
|
|
|
- page int32 `json:"page"`
|
|
|
|
|
- page_size int32 `json:"page_size"`
|
|
|
|
|
- tag_name string `json:"tag_name"`
|
|
|
|
|
- sort_by int32 `json:"sort_by"`
|
|
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ TagName string `json:"tag_name"`
|
|
|
|
|
+ SortBy int32 `json:"sort_by"`
|
|
|
}
|
|
}
|
|
|
TagItem {
|
|
TagItem {
|
|
|
- name string `json:"name"`
|
|
|
|
|
- hot_num int64 `json:"hot_num"`
|
|
|
|
|
- user UserInfo `json:"user"`
|
|
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- created_on int64 `json:"created_on"`
|
|
|
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
|
+ HotNum int64 `json:"hot_num"`
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
}
|
|
}
|
|
|
GetTagListRsp {
|
|
GetTagListRsp {
|
|
|
- tag_list []TagItem `json:"tag_list"`
|
|
|
|
|
- total int32 `json:"total"`
|
|
|
|
|
|
|
+ TagList []TagItem `json:"tag_list"`
|
|
|
|
|
+ Total int32 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetTagReq {
|
|
GetTagReq {
|
|
|
- tag_id int64 `json:"tag_id"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ TagId int64 `json:"tag_id"`
|
|
|
}
|
|
}
|
|
|
GetTagRsp {
|
|
GetTagRsp {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
|
+ HotNum int64 `json:"hot_num"`
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
|
|
+ PostCount int64 `json:"post_count"`
|
|
|
|
|
+ FollowCount int64 `json:"follow_count"`
|
|
|
|
|
+ IsFollowed bool `json:"is_followed"`
|
|
|
}
|
|
}
|
|
|
GetPostListReq {
|
|
GetPostListReq {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ SearchType int32 `json:"search_type"`
|
|
|
|
|
+ SortType int32 `json:"sort_type"`
|
|
|
|
|
+ Keyword string `json:"keyword"`
|
|
|
}
|
|
}
|
|
|
GetPostListItem {
|
|
GetPostListItem {
|
|
|
- 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"`
|
|
|
|
|
- created_on int64 `json:"created_on"`
|
|
|
|
|
- tags []TagItem `json:"tags"`
|
|
|
|
|
- is_liked bool `json:"is_liked"`
|
|
|
|
|
- is_collected bool `json:"is_collected"`
|
|
|
|
|
- is_mine bool `json:"is_mine"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ Title string `json:"title"`
|
|
|
|
|
+ ContentSummary string `json:"content_summary"`
|
|
|
|
|
+ PostYype int32 `json:"post_type"`
|
|
|
|
|
+ CommentCount int64 `json:"comment_count"`
|
|
|
|
|
+ UpvoteCount int64 `json:"upvote_count"`
|
|
|
|
|
+ CollectionCount int64 `json:"collection_count"`
|
|
|
|
|
+ ShareCount int64 `json:"share_count"`
|
|
|
|
|
+ Visibility int32 `json:"visibility"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
|
|
+ HotNum int64 `json:"hot_num"`
|
|
|
|
|
+ Images []string `json:"images"`
|
|
|
|
|
+ VideoUrl string `json:"video_url"`
|
|
|
|
|
+ VideoCover string `json:"video_cover"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
|
|
+ Tags []TagItem `json:"tags"`
|
|
|
|
|
+ IsLiked bool `json:"is_liked"`
|
|
|
|
|
+ IsCollected bool `json:"is_collected"`
|
|
|
|
|
+ IsMine bool `json:"is_mine"`
|
|
|
}
|
|
}
|
|
|
GetPostListRsp {
|
|
GetPostListRsp {
|
|
|
- list []GetPostListItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []GetPostListItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetPostReq {
|
|
GetPostReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
GetPostRsp {
|
|
GetPostRsp {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ Title string `json:"title"`
|
|
|
|
|
+ ContentSummary string `json:"content_summary"`
|
|
|
|
|
+ PostYype int32 `json:"post_type"`
|
|
|
|
|
+ CommentCount int64 `json:"comment_count"`
|
|
|
|
|
+ UpvoteCount int64 `json:"upvote_count"`
|
|
|
|
|
+ CollectionCount int64 `json:"collection_count"`
|
|
|
|
|
+ ShareCount int64 `json:"share_count"`
|
|
|
|
|
+ Visibility int32 `json:"visibility"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
|
|
+ HotNum int64 `json:"hot_num"`
|
|
|
|
|
+ Images []string `json:"images"`
|
|
|
|
|
+ VideoUrl string `json:"video_url"`
|
|
|
|
|
+ VideoCover string `json:"video_cover"`
|
|
|
|
|
+ Content string `json:"content"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
|
|
+ Tags []TagItem `json:"tags"`
|
|
|
|
|
+ WithUser []UserInfo `json:"with_user"`
|
|
|
|
|
+ LatestRepliedOn int64 `json:"latest_replied_on"`
|
|
|
|
|
+ IsLiked bool `json:"is_liked"`
|
|
|
|
|
+ IsCollected bool `json:"is_collected"`
|
|
|
|
|
+ IsMine bool `json:"is_mine"`
|
|
|
}
|
|
}
|
|
|
PostUpvoteReq {
|
|
PostUpvoteReq {
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
PostUpvoteRsp {
|
|
PostUpvoteRsp {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
PostCollectionReq {
|
|
PostCollectionReq {
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
PostCollectionRsp {
|
|
PostCollectionRsp {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
PostShareReq {
|
|
PostShareReq {
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
PostShareRsp {
|
|
PostShareRsp {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
PostCommentReq {
|
|
PostCommentReq {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
|
|
+ Content string `json:"content"`
|
|
|
|
|
+ Image string `json:"image"`
|
|
|
|
|
+ AtUserId int64 `json:"at_user_id"`
|
|
|
|
|
+ Ip string `json:"ip"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
}
|
|
}
|
|
|
PostCommentRsp {
|
|
PostCommentRsp {
|
|
|
- comment_id int64 `json:"comment_id"`
|
|
|
|
|
|
|
+ CommentId int64 `json:"comment_id"`
|
|
|
}
|
|
}
|
|
|
PostReplyReq {
|
|
PostReplyReq {
|
|
|
- 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"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
|
|
+ Content string `json:"content"`
|
|
|
|
|
+ Image string `json:"image"`
|
|
|
|
|
+ AtUserId int64 `json:"at_user_id"`
|
|
|
|
|
+ Ip string `json:"ip"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
|
|
+ CommentId int64 `json:"comment_id"`
|
|
|
|
|
+ ToReplyId int64 `json:"to_reply_id"`
|
|
|
}
|
|
}
|
|
|
PostReplyRsp {
|
|
PostReplyRsp {
|
|
|
- reply_id int64 `json:"reply_id"`
|
|
|
|
|
|
|
+ ReplyId int64 `json:"reply_id"`
|
|
|
}
|
|
}
|
|
|
GetPostCommentListReq {
|
|
GetPostCommentListReq {
|
|
|
- page int32 `json:"page"`
|
|
|
|
|
- page_size int32 `json:"page_size"`
|
|
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
RepliesItem {
|
|
RepliesItem {
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
- user UserInfo `json:"user"`
|
|
|
|
|
- ip_loc string `json:"ip_loc"`
|
|
|
|
|
- content string `json:"content"`
|
|
|
|
|
- image string `json:"image"`
|
|
|
|
|
- with_user []UserInfo `json:"with_user"`
|
|
|
|
|
- upvote_count int64 `json:"upvote_count"`
|
|
|
|
|
- is_liked bool `json:"is_liked"`
|
|
|
|
|
- is_mine bool `json:"is_mine"`
|
|
|
|
|
- created_on int64 `json:"created_on"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
|
|
+ Content string `json:"content"`
|
|
|
|
|
+ Image string `json:"image"`
|
|
|
|
|
+ WithUser []UserInfo `json:"with_user"`
|
|
|
|
|
+ UpvoteCount int64 `json:"upvote_count"`
|
|
|
|
|
+ IsLiked bool `json:"is_liked"`
|
|
|
|
|
+ IsMine bool `json:"is_mine"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
}
|
|
}
|
|
|
CommentItem {
|
|
CommentItem {
|
|
|
- id int64 `json:"id"`
|
|
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
- user UserInfo `json:"user"`
|
|
|
|
|
- ip_loc string `json:"ip_loc"`
|
|
|
|
|
- content string `json:"content"`
|
|
|
|
|
- image string `json:"image"`
|
|
|
|
|
- with_user []UserInfo `json:"with_user"`
|
|
|
|
|
- reply_count int64 `json:"reply_count"`
|
|
|
|
|
- upvote_count int64 `json:"upvote_count"`
|
|
|
|
|
- reply_item []RepliesItem `json:"reply_item"`
|
|
|
|
|
- is_liked bool `json:"is_liked"`
|
|
|
|
|
- is_mine bool `json:"is_mine"`
|
|
|
|
|
- created_on int64 `json:"created_on"`
|
|
|
|
|
|
|
+ Id int64 `json:"id"`
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
|
|
+ User UserInfo `json:"user"`
|
|
|
|
|
+ IpLoc string `json:"ip_loc"`
|
|
|
|
|
+ Content string `json:"content"`
|
|
|
|
|
+ Image string `json:"image"`
|
|
|
|
|
+ WithUser []UserInfo `json:"with_user"`
|
|
|
|
|
+ ReplyCount int64 `json:"reply_count"`
|
|
|
|
|
+ UpvoteCount int64 `json:"upvote_count"`
|
|
|
|
|
+ ReplyItem []RepliesItem `json:"reply_item"`
|
|
|
|
|
+ IsLiked bool `json:"is_liked"`
|
|
|
|
|
+ IsMine bool `json:"is_mine"`
|
|
|
|
|
+ CreatedOn int64 `json:"created_on"`
|
|
|
}
|
|
}
|
|
|
GetPostCommentListRsp {
|
|
GetPostCommentListRsp {
|
|
|
- list []CommentItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []CommentItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetReplyListReq {
|
|
GetReplyListReq {
|
|
|
- page int32 `json:"page"`
|
|
|
|
|
- page_size int32 `json:"page_size"`
|
|
|
|
|
- comment_id int64 `json:"comment_id"`
|
|
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
|
|
+ Page int32 `json:"page"`
|
|
|
|
|
+ PageSize int32 `json:"page_size"`
|
|
|
|
|
+ CommentId int64 `json:"comment_id"`
|
|
|
}
|
|
}
|
|
|
GetReplyListRsp {
|
|
GetReplyListRsp {
|
|
|
- list []RepliesItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []RepliesItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
PostCommentUpvoteReq {
|
|
PostCommentUpvoteReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- comment_id int64 `json:"comment_id"`
|
|
|
|
|
- comment_type int32 `json:"comment_type"`
|
|
|
|
|
|
|
+ CommentId int64 `json:"comment_id"`
|
|
|
|
|
+ CommentType int32 `json:"comment_type"`
|
|
|
}
|
|
}
|
|
|
PostCommentUpvoteRsp {
|
|
PostCommentUpvoteRsp {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
PostDeleteReq {
|
|
PostDeleteReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- post_id int64 `json:"post_id"`
|
|
|
|
|
|
|
+ PostId int64 `json:"post_id"`
|
|
|
}
|
|
}
|
|
|
PostDeleteRsp {
|
|
PostDeleteRsp {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
CommentDeleteReq {
|
|
CommentDeleteReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- comment_id int64 `json:"comment_id"`
|
|
|
|
|
- comment_type int32 `json:"comment_type"`
|
|
|
|
|
|
|
+ CommentId int64 `json:"comment_id"`
|
|
|
|
|
+ CommentType int32 `json:"comment_type"`
|
|
|
}
|
|
}
|
|
|
CommentDeleteRsp {
|
|
CommentDeleteRsp {
|
|
|
- success bool `json:"success"`
|
|
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
}
|
|
}
|
|
|
GetUserPostListReq {
|
|
GetUserPostListReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- page int64 `json:"page"`
|
|
|
|
|
- page_size int64 `json:"page_size"`
|
|
|
|
|
- query_user_id int64 `json:"query_user_id"`
|
|
|
|
|
|
|
+ Page int64 `json:"page"`
|
|
|
|
|
+ PageSize int64 `json:"page_size"`
|
|
|
|
|
+ QueryUserId int64 `json:"query_user_id"`
|
|
|
}
|
|
}
|
|
|
GetUserPostListRsp {
|
|
GetUserPostListRsp {
|
|
|
- list []GetPostListItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []GetPostListItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetUserPostCollectionListReq {
|
|
GetUserPostCollectionListReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- page int64 `json:"page"`
|
|
|
|
|
- page_size int64 `json:"page_size"`
|
|
|
|
|
- query_user_id int64 `json:"query_user_id"`
|
|
|
|
|
|
|
+ Page int64 `json:"page"`
|
|
|
|
|
+ PageSize int64 `json:"page_size"`
|
|
|
|
|
+ QueryUserId int64 `json:"query_user_id"`
|
|
|
}
|
|
}
|
|
|
GetUserPostCollectionListRsp {
|
|
GetUserPostCollectionListRsp {
|
|
|
- list []GetPostListItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []GetPostListItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
GetUserPostLikeListReq {
|
|
GetUserPostLikeListReq {
|
|
|
- user_id int64 `json:"user_id"`
|
|
|
|
|
- page int64 `json:"page"`
|
|
|
|
|
- page_size int64 `json:"page_size"`
|
|
|
|
|
- query_user_id int64 `json:"query_user_id"`
|
|
|
|
|
|
|
+ Page int64 `json:"page"`
|
|
|
|
|
+ PageSize int64 `json:"page_size"`
|
|
|
|
|
+ QueryUserId int64 `json:"query_user_id"`
|
|
|
}
|
|
}
|
|
|
GetUserPostLikeListRsp {
|
|
GetUserPostLikeListRsp {
|
|
|
- list []GetPostListItem `json:"list"`
|
|
|
|
|
- total int64 `json:"total"`
|
|
|
|
|
|
|
+ List []GetPostListItem `json:"list"`
|
|
|
|
|
+ Total int64 `json:"total"`
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -410,11 +392,11 @@ type (
|
|
|
service slowwild {
|
|
service slowwild {
|
|
|
@doc "登录方法"
|
|
@doc "登录方法"
|
|
|
@handler login
|
|
@handler login
|
|
|
- post /api/user/login (LoginReq) returns (LoginAndRegisterRsp)
|
|
|
|
|
|
|
+ post /api/user/login (LoginReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "用户注册"
|
|
@doc "用户注册"
|
|
|
@handler register
|
|
@handler register
|
|
|
- post /api/user/register (RegisterReq) returns (LoginAndRegisterRsp)
|
|
|
|
|
|
|
+ post /api/user/register (RegisterReq) returns (BaseReturnData)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@server (
|
|
@server (
|
|
@@ -424,35 +406,35 @@ service slowwild {
|
|
|
service slowwild {
|
|
service slowwild {
|
|
|
@doc "获取用户信息"
|
|
@doc "获取用户信息"
|
|
|
@handler getUserInfo
|
|
@handler getUserInfo
|
|
|
- get /api/user/info (GetUserInfoReq) returns (GetUserInfoResp)
|
|
|
|
|
|
|
+ get /api/user/info (GetUserInfoReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "查询用户"
|
|
@doc "查询用户"
|
|
|
@handler findUser
|
|
@handler findUser
|
|
|
- post /api/user/find (FindUserReq) returns (FindUserResp)
|
|
|
|
|
|
|
+ post /api/user/find (FindUserReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "关注用户"
|
|
@doc "关注用户"
|
|
|
@handler followUser
|
|
@handler followUser
|
|
|
- post /api/user/follow (FollowUserReq) returns (FollowUserRes)
|
|
|
|
|
|
|
+ post /api/user/follow (FollowUserReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "取消关注用户"
|
|
@doc "取消关注用户"
|
|
|
@handler unfollowUser
|
|
@handler unfollowUser
|
|
|
- post /api/user/unfollow (UnFollowUserReq) returns (UnFollowUserRes)
|
|
|
|
|
|
|
+ post /api/user/unfollow (UnFollowUserReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取粉丝"
|
|
@doc "获取粉丝"
|
|
|
@handler getFans
|
|
@handler getFans
|
|
|
- get /api/user/fans (GetFollowingReq) returns (GetFollowingRes)
|
|
|
|
|
|
|
+ get /api/user/fans (GetFollowingReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取关注列表"
|
|
@doc "获取关注列表"
|
|
|
@handler getFollows
|
|
@handler getFollows
|
|
|
- get /api/user/follows (GetFollowReq) returns (GetFollowRes)
|
|
|
|
|
|
|
+ get /api/user/follows (GetFollowReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取用户信息"
|
|
@doc "获取用户信息"
|
|
|
@handler getUserProfile
|
|
@handler getUserProfile
|
|
|
- get /api/user/profile (GetUserProfileReq) returns (GetUserProfileRes)
|
|
|
|
|
|
|
+ get /api/user/profile (GetUserProfileReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "搜索用户"
|
|
@doc "搜索用户"
|
|
|
@handler searchUsername
|
|
@handler searchUsername
|
|
|
- get /api/user/search (SearchUsernameReq) returns (SearchUsernameRes)
|
|
|
|
|
|
|
+ get /api/user/search (SearchUsernameReq) returns (BaseReturnData)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@server (
|
|
@server (
|
|
@@ -462,39 +444,39 @@ service slowwild {
|
|
|
service slowwild {
|
|
service slowwild {
|
|
|
@doc "创建帖子"
|
|
@doc "创建帖子"
|
|
|
@handler createPost
|
|
@handler createPost
|
|
|
- post /api/post/create (CreatePostReq) returns (CreatePostRsp)
|
|
|
|
|
|
|
+ post /api/post/create (CreatePostReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "帖子点赞"
|
|
@doc "帖子点赞"
|
|
|
@handler postUpvote
|
|
@handler postUpvote
|
|
|
- post /api/post/upvote (PostUpvoteReq) returns (PostUpvoteRsp)
|
|
|
|
|
|
|
+ post /api/post/upvote (PostUpvoteReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "帖子收藏"
|
|
@doc "帖子收藏"
|
|
|
@handler postCollection
|
|
@handler postCollection
|
|
|
- post /api/post/collection (PostCollectionReq) returns (PostCollectionRsp)
|
|
|
|
|
|
|
+ post /api/post/collection (PostCollectionReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "帖子分享"
|
|
@doc "帖子分享"
|
|
|
@handler postShare
|
|
@handler postShare
|
|
|
- post /api/post/share (PostShareReq) returns (PostShareRsp)
|
|
|
|
|
|
|
+ post /api/post/share (PostShareReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "发布评论"
|
|
@doc "发布评论"
|
|
|
@handler postComment
|
|
@handler postComment
|
|
|
- post /api/post/comment (PostCommentReq) returns (PostCommentRsp)
|
|
|
|
|
|
|
+ post /api/post/comment (PostCommentReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "回复评论"
|
|
@doc "回复评论"
|
|
|
@handler postReply
|
|
@handler postReply
|
|
|
- post /api/post/reply (PostReplyReq) returns (PostReplyRsp)
|
|
|
|
|
|
|
+ post /api/post/reply (PostReplyReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "评论点赞"
|
|
@doc "评论点赞"
|
|
|
@handler postCommentUpvote
|
|
@handler postCommentUpvote
|
|
|
- post /api/post/comment/upvote (PostCommentUpvoteReq) returns (PostCommentUpvoteRsp)
|
|
|
|
|
|
|
+ post /api/post/comment/upvote (PostCommentUpvoteReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "帖子删除"
|
|
@doc "帖子删除"
|
|
|
@handler postDelete
|
|
@handler postDelete
|
|
|
- post /api/post/delete (PostDeleteReq) returns (PostDeleteRsp)
|
|
|
|
|
|
|
+ post /api/post/delete (PostDeleteReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "评论删除"
|
|
@doc "评论删除"
|
|
|
@handler commentDelete
|
|
@handler commentDelete
|
|
|
- post /api/comment/delete (CommentDeleteReq) returns (CommentDeleteRsp)
|
|
|
|
|
|
|
+ post /api/comment/delete (CommentDeleteReq) returns (BaseReturnData)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@server (
|
|
@server (
|
|
@@ -504,38 +486,38 @@ service slowwild {
|
|
|
service slowwild {
|
|
service slowwild {
|
|
|
@doc "获取话题列表"
|
|
@doc "获取话题列表"
|
|
|
@handler getTagList
|
|
@handler getTagList
|
|
|
- get /api/tag/list (GetTagListReq) returns (GetTagListRsp)
|
|
|
|
|
|
|
+ get /api/tag/list (GetTagListReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取话题详情"
|
|
@doc "获取话题详情"
|
|
|
@handler getTag
|
|
@handler getTag
|
|
|
- get /api/tag (GetTagReq) returns (GetTagRsp)
|
|
|
|
|
|
|
+ get /api/tag (GetTagReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取帖子列表"
|
|
@doc "获取帖子列表"
|
|
|
@handler getPostList
|
|
@handler getPostList
|
|
|
- get /api/post/list (GetPostListReq) returns (GetPostListRsp)
|
|
|
|
|
|
|
+ get /api/post/list (GetPostListReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取帖子详情"
|
|
@doc "获取帖子详情"
|
|
|
@handler getPost
|
|
@handler getPost
|
|
|
- get /api/post (GetPostReq) returns (GetPostRsp)
|
|
|
|
|
|
|
+ get /api/post (GetPostReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取评论列表"
|
|
@doc "获取评论列表"
|
|
|
@handler getPostCommentList
|
|
@handler getPostCommentList
|
|
|
- get /api/post/comment/list (GetPostCommentListReq) returns (GetPostCommentListRsp)
|
|
|
|
|
|
|
+ get /api/post/comment/list (GetPostCommentListReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取回复列表"
|
|
@doc "获取回复列表"
|
|
|
@handler getReplyList
|
|
@handler getReplyList
|
|
|
- get /api/post/reply/list (GetReplyListReq) returns (GetReplyListRsp)
|
|
|
|
|
|
|
+ get /api/post/reply/list (GetReplyListReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取用户发布的帖子列表"
|
|
@doc "获取用户发布的帖子列表"
|
|
|
@handler getUserPostList
|
|
@handler getUserPostList
|
|
|
- get /api/user/post/list (GetUserPostListReq) returns (GetUserPostListRsp)
|
|
|
|
|
|
|
+ get /api/user/post/list (GetUserPostListReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取用户收藏的帖子列表"
|
|
@doc "获取用户收藏的帖子列表"
|
|
|
@handler getUserPostCollectionList
|
|
@handler getUserPostCollectionList
|
|
|
- get /api/user/post/collection/list (GetUserPostCollectionListReq) returns (GetUserPostCollectionListRsp)
|
|
|
|
|
|
|
+ get /api/user/post/collection/list (GetUserPostCollectionListReq) returns (BaseReturnData)
|
|
|
|
|
|
|
|
@doc "获取用户点赞的帖子列表"
|
|
@doc "获取用户点赞的帖子列表"
|
|
|
@handler getUserPostLikeList
|
|
@handler getUserPostLikeList
|
|
|
- get /api/user/post/like/list (GetUserPostLikeListReq) returns (GetUserPostLikeListRsp)
|
|
|
|
|
|
|
+ get /api/user/post/like/list (GetUserPostLikeListReq) returns (BaseReturnData)
|
|
|
}
|
|
}
|
|
|
|
|
|