pack

package
v0.0.0-...-7de97a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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"`
}

发布视频操作响应报文格式

type RegisterResponse

type RegisterResponse struct {
	StatusCode int32  `json:"status_code"`
	StatusMsg  string `json:"status_msg"`
	UserId     int64  `json:"user_id"`
	Token      string `json:"token"`
}

注册的响应报文格式

type UserResponse

type UserResponse struct {
	StatusCode int32           `json:"status_code"`
	StatusMsg  string          `json:"status_msg"`
	User       *ApiServer.User `json:"user"`
}

用户信息的响应报文格式

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL