api

package
v0.0.0-...-e778533 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVideo

func CreateVideo(c *gin.Context)

CreateVideo 添加视频

func CurrentUser

func CurrentUser(c *gin.Context) *model.User

CurrentUser 获取当前用户

func DeleteVideo

func DeleteVideo(c *gin.Context)

DeleteVideo 删除指定视频

func ErrorResponse

func ErrorResponse(err error) serializer.Response

ErrorResponse 返回错误消息

func ListVideo

func ListVideo(c *gin.Context)

ListVideo 获取视频列表

func Ping

func Ping(c *gin.Context)

Ping 状态检查页面

func ShowVideo

func ShowVideo(c *gin.Context)

ShowVideo 获取指定视频详情

func UpdateVideo

func UpdateVideo(c *gin.Context)

UpdateVideo 更新指定视频

func UserLogin

func UserLogin(c *gin.Context)

UserLogin 用户登录接口

func UserMe

func UserMe(c *gin.Context)

UserMe 用户详情

func UserRegister

func UserRegister(c *gin.Context)

UserRegister 用户注册接口

Types

This section is empty.

Jump to

Keyboard shortcuts

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