controller

package
v0.0.0-...-f1d9293 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugChan = make(chan int, 10)

Functions

func CommentActionHandler

func CommentActionHandler(ctx *gin.Context)

CommentActionHandler:评论操作处理器函数

func CommentActionResponse

func CommentActionResponse(ctx *gin.Context, code int, msg string, comment *pb.Comment)

CommentActionResponse:返回评论操作处理信息

func CommentListHandler

func CommentListHandler(ctx *gin.Context)

CommentListHandler:评论列表处理器函数

func CommentListResponse

func CommentListResponse(ctx *gin.Context, code int, msg string, comments []*pb.Comment)

CommentListResponse:返回评论列表处理信息

func DebugInit

func DebugInit()

DebugInit:初始化debug

func FavoriteAction

func FavoriteAction(ctx *gin.Context)

func FavoriteList

func FavoriteList(ctx *gin.Context)

func Feed

func Feed(ctx *gin.Context)

func FollowActionHandler

func FollowActionHandler(ctx *gin.Context)

func FollowListHandler

func FollowListHandler(ctx *gin.Context)

func FollowerResponse

func FollowerResponse(ctx *gin.Context, code int32, msg string, user_list []*pb.User)

FollowertResponse:返回处理信息

func Followerlist

func Followerlist(ctx *gin.Context)

func GetURL

func GetURL(ctx *gin.Context)

测试oss.GetURL

func LoginHandler

func LoginHandler(ctx *gin.Context)

LoginHandler:登录接口处理器

func LoginResponse

func LoginResponse(ctx *gin.Context, code int, msg string, user_id int, token string)

LoginResponse:返回登录处理信息

func PubListHandler

func PubListHandler(ctx *gin.Context)

VideoListHandler:视频列表接口

func PublistResponse

func PublistResponse(ctx *gin.Context, code int32, msg string, video_list []*pb.Video)

PublistResponse:返回发布列表处理信息

func Register

func Register(ctx *gin.Context)

注册并生成token

func TotalFavorited

func TotalFavorited(uid int) (res int64, err error)

TotalFavorited:获取用户总获赞数,根据客户端的调整临时追加,效率很低

func UploadHandler

func UploadHandler(ctx *gin.Context)

UploadHandler:处理视频上传请求

func UploadResponse

func UploadResponse(ctx *gin.Context, code int, message string)

UploadResponse:返回上传处理信息

func UserInfHandler

func UserInfHandler(ctx *gin.Context)

根据GET请求的id和token获取用户参数

func UserinfoResponse

func UserinfoResponse(ctx *gin.Context, code int32, msg string, user pb.User)

UserinfoResponse:返回发布列表处理信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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