Back to godoc.org

Package tag

v0.0.25
Latest Go to latest

The latest major version is .

Published: Nov 27, 2019 | Licenses: Apache-2.0 , Apache-2.0 | Module: cloudtui.com/key/xiao

Overview

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

Index

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

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

Package Files

  • c_tag.go
  • m_tag.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier