routes

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(c *gin.Context)

func AdminRequred

func AdminRequred(c *gin.Context)

AdminRequred 需要管理员

func All

func All(c *gin.Context)

func Avatar

func Avatar(c *gin.Context)

func CallbackURL

func CallbackURL(c *gin.Context)

回调保存上传信息

func CommentOwnerRequred

func CommentOwnerRequred(c *gin.Context)

CommentRequred 需要当前帖子用户或者管理员

func CreateComment

func CreateComment(c *gin.Context)

CreateComments create a Comment

func CreateTopic

func CreateTopic(c *gin.Context)

CreateTopics create a Topic

func DeleteComment

func DeleteComment(c *gin.Context)

DeleteComments delete a Comment

func DeleteTopic

func DeleteTopic(c *gin.Context)

DeleteTopics delete a Topic

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUsers delete a user

func GetComments

func GetComments(c *gin.Context)

GetComments get all Comment

func GetTopic

func GetTopic(c *gin.Context)

GetTopic get a Topic

func GetTopics

func GetTopics(c *gin.Context)

GetTopics get all Topic

func GetUploadToken

func GetUploadToken(c *gin.Context)

获取上传Token

func GetUser

func GetUser(c *gin.Context)

GetUser get a user

func Login

func Login(c *gin.Context)

func LoginRequred

func LoginRequred(c *gin.Context)

LoginRequred 需要登陆

func Logout

func Logout(c *gin.Context)

func Passwd

func Passwd(c *gin.Context)

func Regist

func Regist(c *gin.Context)

func Test

func Test(c *gin.Context)

func TopicOwnerRequred

func TopicOwnerRequred(c *gin.Context)

TopicRequred 需要当前帖子用户或者管理员

func UpdateProfile

func UpdateProfile(c *gin.Context)

func UpdateTopic

func UpdateTopic(c *gin.Context)

UpdateTopics update a Topic

func User

func User(c *gin.Context)

func UserOwnerRequred

func UserOwnerRequred(c *gin.Context)

UserRequred 需要当前用户或者管理员

func Users

func Users(c *gin.Context)

GetUsers get all user

Types

This section is empty.

Jump to

Keyboard shortcuts

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