api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeOwnPasswordUserHandler

func ChangeOwnPasswordUserHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func CreatePageHandler

func CreatePageHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func CreateUserHandler

func CreateUserHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func DeleteAssetHandler

func DeleteAssetHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func DeletePageHandler

func DeletePageHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func DeleteUserHandler

func DeleteUserHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func GetPageByPathHandler

func GetPageByPathHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func GetPageHandler

func GetPageHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func GetTreeHandler

func GetTreeHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func GetUsersHandler

func GetUsersHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func ListAssetsHandler

func ListAssetsHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func LoginUserHandler

func LoginUserHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func MovePageHandler

func MovePageHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func RefreshTokenUserHandler

func RefreshTokenUserHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func SortPagesHandler

func SortPagesHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func SuggestSlugHandler

func SuggestSlugHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func UpdatePageHandler

func UpdatePageHandler(w *noteroot.NoteRoot) gin.HandlerFunc

func UpdateUserHandler

func UpdateUserHandler(wikiInstance *noteroot.NoteRoot) gin.HandlerFunc

func UploadAssetHandler

func UploadAssetHandler(w *noteroot.NoteRoot) gin.HandlerFunc

Types

type Node

type Node struct {
	ID       string  `json:"id"`
	Title    string  `json:"title"`
	Slug     string  `json:"slug"`
	Path     string  `json:"path"`
	Position int     `json:"position"`
	Children []*Node `json:"children"`
}

func ToAPINode

func ToAPINode(node *tree.PageNode, parentPath string) *Node

type Page

type Page struct {
	*tree.PageNode
	Content string `json:"content"`
	Path    string `json:"path"`
}

func ToAPIPage

func ToAPIPage(p *tree.Page) *Page

Jump to

Keyboard shortcuts

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