tag

package
v0.0.25 Latest Latest
Warning

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

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

Documentation

Overview

给文章添加标签 这个也应该合并到分类模块里 只是分类的key的问题

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTag

func GetTag(c *gin.Context)

GetTag 页面 @since 0.0.1

func InsertTag

func InsertTag(name string, slug string, description string) error

InsertTag 添加文章标签 @since 0.0.1

func PostInsterTag

func PostInsterTag(c *gin.Context)

PostInsterTag 新增标签 @since 0.0.1

func Register

func Register()

Register 注册 @since 0.0.1 @since 0.0.4 使用 AdminR

Types

type FormPostInsterTag

type FormPostInsterTag struct {
	Name        string `form:"name" binding:"required"`
	Slug        string `form:"slug"`
	Description string `form:"description"`
}

FormPostInsterTag 增加标签表单 @since 0.0.1

type Tag

type Tag struct {
	TermID    uint64 `json:"term_id"`    // term_id
	Name      string `json:"name"`       // name
	Slug      string `json:"slug"`       // slug
	TermGroup int64  `json:"term_group"` // term_group 这个不怎么用得到

	TermTaxonomyID uint64 `json:"term_taxonomy_id"` // term_taxonomy_id
	Description    string `json:"description"`      // description
	Count          int64  `json:"count"`            // count

}

Tag 标签结构体 @since 0.0.1

func GetAllTag

func GetAllTag() ([]*Tag, error)

GetAllTag 获取所有标签 @since 0.0.1

Jump to

Keyboard shortcuts

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