label

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabel

func AddLabel(term *model.DBTerm) (err error)

AddLabel 添加标签 @since 0.0.1

func AddLabelAction

func AddLabelAction(c *gin.Context)

AddLabelAction 添加标签 @since 0.0.1

func FindLabel

func FindLabel(taxonomy string) (labels []*model.Label, err error)

FindLabel 获取标签 @since 0.0.1

func FindLabelAction

func FindLabelAction(c *gin.Context)

FindLabelAction 获取全部 label @since 0.0.1

func Register

func Register()

Register 注册标签工具 @since 0.0.1 @since 0.0.9 修改 API URL

Types

type FormAddLabelAction

type FormAddLabelAction struct {
	Name        string `form:"name"`
	Slug        string `form:"slug"`
	Description string `form:"description"`
}

FormAddLabelAction 添加标签的表单 @since 0.0.1

Jump to

Keyboard shortcuts

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