createfolder

package
v0.0.0-...-4d14c86 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTitle        = errors.New("no folder title given")
	ErrParentNotFound = errors.New("parent folder not found")
)

Functions

func Process

func Process(ctx context.Context, db bun.IDB, input Input) *run

Types

type Input

type Input struct {
	Title    string `json:"title"`
	ParentID string `json:"parent_id" binding:"optional"`
}

Input is a folder as the user gave it: an empty ParentID puts it at the root.

Jump to

Keyboard shortcuts

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