Documentation ¶
Index ¶
- func SendCommentActionResponse(c *app.RequestContext, resp interface{})
- func SendCommentListResponse(c *app.RequestContext, resp interface{})
- func SendFavoriteActionResponse(c *app.RequestContext, resp interface{})
- func SendFavoriteListResponse(c *app.RequestContext, err error, videoList []*FavoriteServer.Video)
- func SendFeedResponse(c *app.RequestContext, err error, videoList []*VideoServer.Video)
- func SendFollowActionResponse(c *app.RequestContext, resp interface{})
- func SendFollowListResponse(c *app.RequestContext, resp interface{})
- func SendPublishActionResponse(c *app.RequestContext, err error, resp interface{})
- func SendRegisterResponse(c *app.RequestContext, err error, id int64, token string)
- func SendUesrInfoResponse(c *app.RequestContext, err error, u *UserServer.User, isFollow bool)
- type CommentActionResponse
- type CommentListResponse
- type FavoriteActionResponse
- type FavoriteListResponse
- type FeedResponse
- type FollowActionResponse
- type FollowListResponse
- type PublishActionResponse
- type RegisterResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendCommentActionResponse ¶
func SendCommentActionResponse(c *app.RequestContext, resp interface{})
创建/删除评论的响应报文
func SendCommentListResponse ¶
func SendCommentListResponse(c *app.RequestContext, resp interface{})
发送评论列表的响应报文
func SendFavoriteActionResponse ¶
func SendFavoriteActionResponse(c *app.RequestContext, resp interface{})
点赞/取消点赞操作的响应报文
func SendFavoriteListResponse ¶
func SendFavoriteListResponse(c *app.RequestContext, err error, videoList []*FavoriteServer.Video)
发送点赞列表的响应报文
func SendFeedResponse ¶
func SendFeedResponse(c *app.RequestContext, err error, videoList []*VideoServer.Video)
发送Feed视频流响应报文
func SendFollowActionResponse ¶
func SendFollowActionResponse(c *app.RequestContext, resp interface{})
关注/取关的响应报文
func SendFollowListResponse ¶
func SendFollowListResponse(c *app.RequestContext, resp interface{})
发送关注/粉丝列表的响应报文
func SendPublishActionResponse ¶
func SendPublishActionResponse(c *app.RequestContext, err error, resp interface{})
发送发布视频操作响应报文
func SendRegisterResponse ¶
func SendRegisterResponse(c *app.RequestContext, err error, id int64, token string)
发送注册的响应报文
func SendUesrInfoResponse ¶
func SendUesrInfoResponse(c *app.RequestContext, err error, u *UserServer.User, isFollow bool)
发送用户信息的响应报文
Types ¶
type CommentActionResponse ¶
type CommentActionResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` Comment *CommentServer.Comment `json:"comment"` }
评论动作的报文格式
type CommentListResponse ¶
type CommentListResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` CommentList []*CommentServer.Comment `json:"comment_list"` }
评论列表的报文格式
type FavoriteActionResponse ¶
type FavoriteActionResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` }
点赞/取消赞的报文格式
type FavoriteListResponse ¶
type FavoriteListResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` VideoList []*FavoriteServer.Video `json:"video_list"` }
点赞列表的报文格式
type FeedResponse ¶
type FeedResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` VideoList []*VideoServer.Video `json:"video_list"` }
Feed响应报文格式
type FollowActionResponse ¶
type FollowActionResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` }
关注/取关动作的报文格式
type FollowListResponse ¶
type FollowListResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` UserList []*RelationServer.User `json:"user_list"` }
关注/粉丝列表的报文格式
type PublishActionResponse ¶
type PublishActionResponse struct { StatusCode int32 `json:"status_code"` StatusMsg string `json:"status_msg"` }
发布视频操作响应报文格式
Click to show internal directories.
Click to hide internal directories.