article

package
v0.0.0-...-3f885a5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArticle

func CreateArticle(c *gin.Context)

创建文章

func DeleteArticle

func DeleteArticle(c *gin.Context)

删除文章

func GetAllArticleList

func GetAllArticleList(c *gin.Context)

获取所有的文章列表数据

func GetArticleDetail

func GetArticleDetail(c *gin.Context)

获取文章详细数据

func GetArticleList

func GetArticleList(c *gin.Context)

获取公开的文章列表数据

func GetTags

func GetTags(c *gin.Context)

func UpdateArticle

func UpdateArticle(c *gin.Context)

更新文章

Types

type PostArticle

type PostArticle struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Status      uint     `json:"status"`
	Content     string   `json:"content"`
	Tags        []string `json:"tags"`
}

type Tag

type Tag struct {
	Value string `json:"value" bson:"_id"`
	Num   int    `json:"num" bson:"value"`
}

Jump to

Keyboard shortcuts

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