v1

package
v0.0.0-...-1cc545a Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QRCODE_URL = "https://github.com/EDDYCJY/blog#gin%E7%B3%BB%E5%88%97%E7%9B%AE%E5%BD%95"
)

Variables

This section is empty.

Functions

func AddArticle

func AddArticle(c *gin.Context)

AddArticle 新增文章

func AddTag

func AddTag(c *gin.Context)

AddTag @Summary 新增文章标签 @Produce json @Param name query string true "Name" @Param state query int false "State" @Param created_by query int false "CreatedBy" @Router /api/v1/tags [post]

func DeleteArticle

func DeleteArticle(c *gin.Context)

DeleteArticle 删除文章

func DeleteTag

func DeleteTag(c *gin.Context)

DeleteTag 删除文章标签

func EditArticle

func EditArticle(c *gin.Context)

EditArticle 修改文章

func EditTag

func EditTag(c *gin.Context)

EditTag 修改文章标签 @Produce json @Param id path int true "ID" @Param name query string true "ID" @Param state query int false "State" @Param modified_by query string true "ModifiedBy" @Router /api/v1/tags/{id} [put]

func ExportArticle

func ExportArticle(c *gin.Context)

func ExportTag

func ExportTag(c *gin.Context)

func GenerateArticlePoster

func GenerateArticlePoster(c *gin.Context)

func GetArticle

func GetArticle(c *gin.Context)

GetArticle 获取单个文章

func GetArticles

func GetArticles(c *gin.Context)

GetArticles 获取多个文章 @Summary Get multiple articles @Produce json @Param tag_id body int false "TagID" @Param state body int false "State" @Param created_by body int false "CreatedBy" @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/articles [get]

func GetTags

func GetTags(c *gin.Context)

GetTags 获取多个文章标签 @Summary Get multiple tags @Produce json @Param name body int false "Name" @Param state body int false "State" @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/tags [get]

func ImportArticle

func ImportArticle(c *gin.Context)

func ImportTag

func ImportTag(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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