syscontent

package
v0.0.0-...-cfb18d5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 9 Imported by: 0

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

func (Content) BatchDelete(c *gin.Context)

@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

func (Content) Create(c *gin.Context)

@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

func (Content) Get(c *gin.Context)

@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

func (Content) QueryPage(c *gin.Context)

@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

func (Content) Update(c *gin.Context)

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

Jump to

Keyboard shortcuts

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