handlers

package
v0.0.0-...-d63e0d4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentAction

func CommentAction(c *gin.Context)

func CommentList

func CommentList(c *gin.Context)

func FavoriteAction

func FavoriteAction(c *gin.Context)

func FavoriteList

func FavoriteList(c *gin.Context)

FavoriteList get favorite list info

func Feed

func Feed(c *gin.Context)

func FollowList

func FollowList(c *gin.Context)

func FollowerList

func FollowerList(c *gin.Context)

func MessageAction

func MessageAction(c *gin.Context)

func MessageChat

func MessageChat(c *gin.Context)

func PublishAction

func PublishAction(c *gin.Context)

func PublishList

func PublishList(c *gin.Context)

PublishList get publish list

func RelationAction

func RelationAction(c *gin.Context)

RelationAction implement follow and unfollow actions

func SendChatResponse

func SendChatResponse(c *gin.Context, messages interface{}, err error)

func SendCommentActionResponse

func SendCommentActionResponse(c *gin.Context, err error, comment interface{})

SendCommentActionResponse pack comment action response

func SendCommentListResponse

func SendCommentListResponse(c *gin.Context, err error, commentList interface{})

SendCommentListResponse pack comment list response

func SendFavoriteListResponse

func SendFavoriteListResponse(c *gin.Context, err error, videoList interface{})

func SendFeedResponse

func SendFeedResponse(c *gin.Context, err error, videoList interface{}, nextTime int64)

func SendPublishListResponse

func SendPublishListResponse(c *gin.Context, err error, videoList interface{})

func SendRelationListResponse

func SendRelationListResponse(c *gin.Context, err error, userList interface{})

func SendResponse

func SendResponse(c *gin.Context, err error)

func SendUserInfoResponse

func SendUserInfoResponse(c *gin.Context, err error, user interface{})

func SendUserResponse

func SendUserResponse(c *gin.Context, err error, userId int64, token string)

func UserInfo

func UserInfo(c *gin.Context)

func UserRegister

func UserRegister(c *gin.Context)

Types

type CommentActionResponse

type CommentActionResponse struct {
	StatusCode int32       `json:"status_code"`
	StatusMsg  string      `json:"status_msg"`
	Comment    interface{} `json:"comment,omitempty"`
}

type CommentListResponse

type CommentListResponse struct {
	StatusCode  int32       `json:"status_code"`
	StatusMsg   string      `json:"status_msg"`
	CommentList interface{} `json:"comment_list,omitempty"`
}

type FavoriteListResponse

type FavoriteListResponse struct {
	StatusCode int32       `json:"status_code"`
	StatusMsg  string      `json:"status_msg"`
	VideoList  interface{} `json:"video_list,omitempty"`
}

type FeedResponse

type FeedResponse struct {
	StatusCode int32       `json:"status_code"`
	StatusMsg  string      `json:"status_msg"`
	VideoList  interface{} `json:"video_list,omitempty"`
	NextTime   int64       `json:"next_time,omitempty"`
}

type MessageInfoResponse

type MessageInfoResponse struct {
	StatusCode  int32       `json:"status_code"`
	StatusMsg   string      `json:"status_msg"`
	MessageList interface{} `json:"message_list"`
}

type PublishListResponse

type PublishListResponse struct {
	StatusCode int32       `json:"status_code"`
	StatusMsg  string      `json:"status_msg"`
	VideoList  interface{} `json:"video_list,omitempty"`
}

type RelationListResponse

type RelationListResponse struct {
	StatusCode int32       `json:"status_code"`
	StatusMsg  string      `json:"status_msg,omitempty"`
	UserList   interface{} `json:"user_list,omitempty"`
}

type Response

type Response struct {
	StatusCode int32  `json:"status_code"`
	StatusMsg  string `json:"status_msg"`
}

type UserInfoResponse

type UserInfoResponse struct {
	StatusCode int32       `json:"status_code"`
	StatusMsg  string      `json:"status_msg"`
	User       interface{} `json:"user"`
}

type UserLogin

type UserLogin struct {
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

type UserResponse

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

Jump to

Keyboard shortcuts

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