publish

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

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishAction

func PublishAction(ctx context.Context, c *app.RequestContext)

PublishAction 发表文章接口 @Summary 发表文章 @Description 用户可以通过此接口发表一篇文章 @Tags 文章管理 @Accept json @Produce json @Param data body publish.CreateActionRequest true "文章创建请求参数" @Success 200 {object} publish.CreateActionResponse "成功响应" @Failure 400 {object} common.BaseResponse "请求参数错误" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/publish/action [post]

func PublishDelAction

func PublishDelAction(ctx context.Context, c *app.RequestContext)

PublishDelAction 删除文章接口 @Summary 删除文章 @Description 用户可以通过此接口删除一篇文章 @Tags 文章管理 @Accept json @Produce json @Param data body publish.DelActionRequest true "文章删除请求参数" @Success 200 {object} publish.ActionResponse "成功响应" @Failure 400 {object} common.BaseResponse "请求参数错误" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/publish/action [delete]

func PublishDetail

func PublishDetail(ctx context.Context, c *app.RequestContext)

PublishDetail 获取文章详情接口 @Summary 获取文章详情 @Description 用户可以通过此接口获取某篇文章的详细信息 @Tags 文章管理 @Accept json @Produce json @Param data query publish.DetailRequest true "文章详情请求参数" @Success 200 {object} publish.ArticleResponse "成功响应,返回文章详情" @Failure 400 {object} common.BaseResponse "请求参数错误" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/publish/detail [get]

func PublishList

func PublishList(ctx context.Context, c *app.RequestContext)

PublishList 获取文章列表接口 @Summary 获取文章列表 @Description 用户可以通过此接口获取文章列表 @Tags 文章管理 @Accept json @Produce json @Param data query publish.CardsRequest true "文章列表请求参数" @Success 200 {object} publish.CardsResponse "成功响应,返回文章列表" @Failure 400 {object} common.BaseResponse "请求参数错误" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/publish/list [get]

func PublishModifyAction

func PublishModifyAction(ctx context.Context, c *app.RequestContext)

PublishModifyAction 修改文章接口 @Summary 修改文章 @Description 用户可以通过此接口修改一篇文章 @Tags 文章管理 @Accept json @Produce json @Param data body publish.ModifyActionRequest true "文章修改请求参数" @Success 200 {object} publish.ActionResponse "成功响应" @Failure 400 {object} common.BaseResponse "请求参数错误" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/publish/action [patch]

func PublishViewCountAdd

func PublishViewCountAdd(ctx context.Context, c *app.RequestContext)

PublishViewCountAdd 增加文章阅读数接口 @Summary 增加文章阅读数 @Description 用户可以通过此接口增加某篇文章的阅读数 @Tags 文章管理 @Accept json @Produce json @Param data body publish.ActionRequest true "文章阅读数增加请求参数" @Success 200 {object} publish.ActionResponse "成功响应" @Failure 400 {object} common.BaseResponse "请求参数错误" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/publish/view_add [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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