handlers

package
v0.0.0-...-dfc68d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentAction

func CommentAction(c *gin.Context)

CommentAction implement adding and deleting comments

func CommentList

func CommentList(c *gin.Context)

CommentList get comment list info

func FavoriteAction

func FavoriteAction(c *gin.Context)

FavoriteAction implement like and unlike operations

func FavoriteList

func FavoriteList(c *gin.Context)

FavoriteList get favorite list info

func Feed

func Feed(c *gin.Context)

Feed get video feed data

func FollowList

func FollowList(c *gin.Context)

FollowList get user follow list info

func FollowerList

func FollowerList(c *gin.Context)

FollowerList get user follower list info

func FriendList

func FriendList(c *gin.Context)

func MessageAction

func MessageAction(c *gin.Context)

MessageAction implement message actions

func MessageChat

func MessageChat(c *gin.Context)

MessageChat get user message info

func Publish

func Publish(c *gin.Context)

Publish upload video datas

func PublishList

func PublishList(c *gin.Context)

PublishList get publish list

func Register

func Register(c *gin.Context)

Register register uesr info

func RelationAction

func RelationAction(c *gin.Context)

RelationAction implement follow and unfollow actions

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{})

SendFavoriteListResponse pack favorite list response

func SendFeedResponse

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

SendFeedResponse pack feed response

func SendFriendListResponse

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

SendFriendListResponse pack friend list response

func SendMessageListResponse

func SendMessageListResponse(c *gin.Context, err error, messageList interface{})

SendMessageListResponse pack friend list response

func SendRelationListResponse

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

SendRelationListResponse pack relation list response

func SendResponse

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

SendResponse pack response

func SendUserInfoResponse

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

SendUserInfoResponse pack user info response

func SendUserResponse

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

SendUserResponse pack user response

func SendVideoListResponse

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

SendVideoListResponse pack video list response

func UserInfo

func UserInfo(c *gin.Context)

UserInfo get user info

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 FriendListResponse

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

type MessageListResponse

type MessageListResponse struct {
	StatusCode  int32       `json:"status_code"`
	StatusMsg   string      `json:"status_msg,omitempty"`
	MessageList interface{} `json:"user_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 UserLoginParam

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

type VideoListResponse

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

Jump to

Keyboard shortcuts

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