page

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func HandleMakePageDuplicate

func HandleMakePageDuplicate(c *fiber.Ctx, obj any) (any, error)

func HandleMakePagePublish

func HandleMakePagePublish(c *fiber.Ctx, obj any, publish bool) (any, error)

func HandleQueryTags

func HandleQueryTags(c *fiber.Ctx, obj any, tableName string) (any, error)

func HandleSaveDraft

func HandleSaveDraft(c *fiber.Ctx, obj any) (any, error)

func MakeDuplicate added in v0.2.0

func MakeDuplicate(obj any) error

func MakePublish added in v0.2.0

func MakePublish(siteID, ID string, obj any, publish bool) error

func NewRenderContentFromPage added in v0.2.0

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

func QueryTags added in v0.2.0

func QueryTags() ([]string, error)

func SafeDraft added in v0.2.0

func SafeDraft(siteID, ID string, obj any, draft string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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