comment

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIAddComment

func APIAddComment(c *gin.Context)

APIAddComment 添加评论 @since 0.0.1

func APIFindComment

func APIFindComment(c *gin.Context)

APIFindComment 查看评论 @since 0.0.1

func AddComment

func AddComment(comment *model.Comment) (err error)

AddComment 事务形式添加评论 @since 0.0.1

func FindComment

func FindComment(postID uint64) (ret []*model.Comment, err error)

FindComment 查找文章评论 @since 0.0.1

func Register

func Register()

Register 注册路由 @since 0.0.1

Types

type FormAPIAddComment

type FormAPIAddComment struct {
	CommentContent string `form:"commentContent"`
	CommentPostID  uint64 `form:"commentPostID"`
}

FormAPIAddComment 添加评论表单 @since 0.0.1

type FormAPIFindComment

type FormAPIFindComment struct {
	PostID uint64 `form:"postID"`
}

FormAPIFindComment 查看评论表单 @since 0.0.1

Jump to

Keyboard shortcuts

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