v1

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

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArticle

func AddArticle(c *gin.Context)

@Summary 新增文章 @Produce json @Tags article @Param title query string true "title" @Param desc query string true "desc" @Param content query string true "content" @Param created_by query string true "created_by" @Param state query string true "state" @Param tag_id query string true "tag_id" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/articles [post]

func AddTag

func AddTag(c *gin.Context)

@Summary 新增文章标签 @Produce json @Tags tags @Param name query string true "Name" @Param state query int false "State" @Param created_by query int false "CreatedBy" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/tags [post]

func DeleteArticle

func DeleteArticle(c *gin.Context)

@Summary 删除文章 @Produce json @Tags article @Param id query string true "id" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/articles/{id} [delete]

func DeleteTag

func DeleteTag(c *gin.Context)

@Summary 删除文章标签 @Produce json @Tags tags @Param name query string true "ID" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/tags/{id} [delete]

func EditArticle

func EditArticle(c *gin.Context)

@Summary 更新文章 @Produce json @Tags article @Param title query string true "title" @Param desc query string true "desc" @Param content query string true "content" @Param created_by query string true "created_by" @Param state query string true "state" @Param tag_id query string true "tag_id" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/articles/{id} [put]

func EditTag

func EditTag(c *gin.Context)

@Summary 修改文章标签 @Produce json @Tags tags @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" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/tags/{id} [put]

func GetArticle

func GetArticle(c *gin.Context)

@Summary 获取文章详情 @Produce json @Tags article @Param name query string true "ID" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/articles/{id} [get]

func GetArticles

func GetArticles(c *gin.Context)

@Summary 获取文章列表 @Produce json @Tags article @Param state query string true "state" @Param tag_id query string true "tag_id" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/articles [get]

func GetTags

func GetTags(c *gin.Context)

@Summary 获取所有文章标签 @Produce json @Tags tags @Param name query string false "Name" @Param state query int false "State" @Success 200 {string} string "{"code":200,"data":{},"msg":"ok"}" @Router /api/v1/tags [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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