controller

package
v0.0.0-...-c93c141 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnlineUser = map[string]*common.UserVo{}
View Source
var Rd *redis.Client

Rd 定义一个全局变量

Functions

func CommentAction

func CommentAction(c *gin.Context)

CommentAction 评论功能

func CommentList

func CommentList(c *gin.Context)

CommentList 获取评论列表

func FavoriteAction

func FavoriteAction(c *gin.Context)

FavoriteAction 点赞

func FavoriteList

func FavoriteList(c *gin.Context)

FavoriteList 获取点赞列表

func Feed

func Feed(c *gin.Context)

Feed 获取视频流

func Login

func Login(c *gin.Context)

Login 登录

func PublishList

func PublishList(c *gin.Context)

PublishList 发布视频列表

func PublishVideo

func PublishVideo(c *gin.Context)

PublishVideo 发布视频

func RedisInit

func RedisInit() (err error)

func Register

func Register(c *gin.Context)

Register 注册

func RelationAction

func RelationAction(c *gin.Context)

RelationAction 关注

func RelationFollowList

func RelationFollowList(c *gin.Context)

RelationFollowList 获取关注列表

func RelationFollowerList

func RelationFollowerList(c *gin.Context)

RelationFollowerList 获取粉丝列表

func UserInfo

func UserInfo(c *gin.Context)

UserInfo 获取用户详细信息

Types

type CommentListResponse

type CommentListResponse struct {
	common.Response
	CommentList []common.CommentVo `json:"comment_list,omitempty"`
}

type CommentResponse

type CommentResponse struct {
	common.Response
	Comment common.CommentVo `json:"comment"`
}

type FavoriteResponse

type FavoriteResponse struct {
	common.Response
	VideoList []common.VideoVo `json:"video_list,omitempty"`
}

type FeedResponse

type FeedResponse struct {
	common.Response
	VideoList []common.VideoVo `json:"video_list,omitempty"`
	NextTime  int64            `json:"next_time,omitempty"`
}

type PublishListResp

type PublishListResp struct {
	common.Response
	VideoList []common.VideoVo `json:"video_list,omitempty"`
}

type RegisterResp

type RegisterResp struct {
	common.Response
	UserId int64  `json:"user_id"`
	Token  string `json:"token"`
}

type RelationListResponse

type RelationListResponse struct {
	common.Response
	UserList []common.UserVo `json:"user_list,omitempty"`
}

type UserResp

type UserResp struct {
	common.Response
	User common.UserVo `json:"user"`
}

Jump to

Keyboard shortcuts

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