content

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDB            = "admin.content.gorm.db"
	KeyNoCheckRouter = "admin.content.router.nocheck"
	KeyCheckRouter   = "admin.content.router.check"
)

Variables

This section is empty.

Functions

func GetRelations

func GetRelations(siteId, categoryId, categoryPath, postId string, maxCount int) ([]model.RelationContent, error)

func GetSuggestions

func GetSuggestions(siteId, categoryId, categoryPath, postId string, maxCount int) ([]model.RelationContent, error)

func GetTagsByCategory

func GetTagsByCategory(contentType string, form *model.TagsForm) ([]string, error)

Query tags by category

func NewRenderContentFromPage

func NewRenderContentFromPage(page *model.Page) *model.RenderContent

func NewRenderContentFromPost

func NewRenderContentFromPost(post *model.Post, relations bool) *model.RenderContent

Types

This section is empty.

Jump to

Keyboard shortcuts

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