controller

package
v0.0.0-...-6387268 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommentDao dao.Comment
)

Functions

func CreateComment

func CreateComment(ctx *gin.Context)

CreateComment 写留言

func DeleteComment

func DeleteComment(ctx *gin.Context)

DeleteComment 删除留言

func GetAllComments

func GetAllComments(ctx *gin.Context)

GetAllComments 获取所有留言 todo 应该改成分页

func GetCommentById

func GetCommentById(ctx *gin.Context)

GetCommentById 获取单条留言

func UpdateComment

func UpdateComment(ctx *gin.Context)

UpdateComment 更新留言信息

Types

type BaseController

type BaseController struct {
}

Jump to

Keyboard shortcuts

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