v1

package
v0.0.0-...-1bfcc7b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct{}

func NewPost

func NewPost() *Post

func (*Post) Create

func (p *Post) Create(c *gin.Context)

func (*Post) Delete

func (p *Post) Delete(c *gin.Context)

func (*Post) Get

func (p *Post) Get(c *gin.Context)

func (*Post) List

func (p *Post) List(c *gin.Context)

func (*Post) Update

func (p *Post) Update(c *gin.Context)

type Tag

type Tag struct{}

func NewTag

func NewTag() *Tag

func (*Tag) Create

func (t *Tag) Create(c *gin.Context)

func (*Tag) Delete

func (t *Tag) Delete(c *gin.Context)

func (*Tag) Get

func (t *Tag) Get(c *gin.Context)

@Summary 获取单个标签 @Description 获取单个标签 @Produce json @Param id path string true "标签ID" @Success 200 {object} model.BlogTag "ok" @Router /tag/{id} [get]

func (*Tag) List

func (t *Tag) List(c *gin.Context)

func (*Tag) Update

func (t *Tag) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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