Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArticle ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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]
Types ¶
This section is empty.