post

package
v0.0.0-...-385473e Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 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 PostController

type PostController struct {
	// contains filtered or unexported fields
}

PostController 是 post 模块在 Controller 层的实现,用来处理博客模块的请求.

func New

func New(ds store.IStore) *PostController

New 创建一个 post controller.

func (*PostController) Create

func (ctrl *PostController) Create(c *gin.Context)

Create 创建一条博客.

func (*PostController) Delete

func (ctrl *PostController) Delete(c *gin.Context)

Delete 删除指定的博客.

func (*PostController) DeleteCollection

func (ctrl *PostController) DeleteCollection(c *gin.Context)

DeleteCollection 批量删除博客.

func (*PostController) Get

func (ctrl *PostController) Get(c *gin.Context)

Get 获取指定的博客.

func (*PostController) List

func (ctrl *PostController) List(c *gin.Context)

List 返回博客列表.

func (*PostController) Update

func (ctrl *PostController) Update(c *gin.Context)

Update 更新博客.

Jump to

Keyboard shortcuts

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