Documentation ¶
Index ¶
- Constants
- func GetRelations(siteId, categoryId, categoryPath, postId string, maxCount int) ([]model.RelationContent, error)
- func GetSuggestions(siteId, categoryId, categoryPath, postId string, maxCount int) ([]model.RelationContent, error)
- func GetTagsByCategory(contentType string, form *model.TagsForm) ([]string, error)
- func NewRenderContentFromPage(page *model.Page) *model.RenderContent
- func NewRenderContentFromPost(post *model.Post, relations bool) *model.RenderContent
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.