Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct{}
func (Content) BatchDelete ¶
@tags 文章内容/Content @summary 批量删除内容 @description 批量删除内容 @security Bearer @accept json @produce json @param ids path string true "以','分隔的id列表" @success 200 {object} servers.Response "成功" @failure 400 {object} servers.Response "错误请求" @failure 401 {object} servers.Response "鉴权失败" @failure 500 {object} servers.Response "服务器内部错误" @router /api/v1/contents/{ids} [get]
func (Content) Create ¶
@tags 文章内容/Content @summary 添加内容 @description 添加内容 @security Bearer @accept json @produce json @param newItem body models.Content true "new item" @success 200 {object} servers.Response "成功" @failure 400 {object} servers.Response "错误请求" @failure 401 {object} servers.Response "鉴权失败" @failure 500 {object} servers.Response "服务器内部错误" @router /api/v1/contents [post]
func (Content) Get ¶
@tags 文章内容/Content @summary 获取内容 @description 获取内容 @security Bearer @accept json @produce json @param id path int true "主键" @success 200 {object} servers.Response "成功" @failure 400 {object} servers.Response "错误请求" @failure 401 {object} servers.Response "鉴权失败" @failure 500 {object} servers.Response "服务器内部错误" @router /api/v1/contents/:id [get]
func (Content) QueryPage ¶
@tags 文章内容/Content @summary 获取内容列表 @description 获取内容列表 @security Bearer @accept json @produce json @param cateId query string false "cateId分类id" @param name query string false "name" @param status query string false "status" @param pageSize query int false "页条数" @param pageIndex query int false "页码" @success 200 {object} servers.Response "成功" @failure 400 {object} servers.Response "错误请求" @failure 401 {object} servers.Response "鉴权失败" @failure 500 {object} servers.Response "服务器内部错误" @router /api/v1/contents [get]
func (Content) Update ¶
@tags 文章内容/Content @summary 更新内容 @description 更新内容 @security Bearer @accept json @produce json @param up body models.Content true "update item" @success 200 {object} servers.Response "成功" @failure 400 {object} servers.Response "错误请求" @failure 401 {object} servers.Response "鉴权失败" @failure 500 {object} servers.Response "服务器内部错误" @router /api/v1/contents [put]