package
0.0.0-20210824033126-1d15e59e7da3
Repository: https://github.com/coder-stars/gin-example.git
Documentation: pkg.go.dev

# Functions

@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].
@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].
@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].
@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].
@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].
@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].
@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].
@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].
@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].