controller

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Create = struct {
	Routes crudl.Create[*model.Model]

	FormName wc.FormArg
}{
	crudl.NewCreate(Router, "category-create"),

	wc.NewFormArg("name").String(),
}
View Source
var Delete = struct {
	Routes crudl.DeleteGET[*model.Model]

	PathID wc.PathArg
}{
	crudl.NewDeleteGET(Router, "category-delete"),

	wc.NewPathArg("id"),
}
View Source
var List = struct {
	Routes crudl.List[*model.Model]

	OtherArg  wc.QueryArgOpt
	TableArgs crudl.TableArgs[*model.Model]
}{
	crudl.NewList(Router, "category-list"),

	wc.NewQueryArgOpt("other").String(),
	crudl.NewTableArgs[*model.Model]("id", "ASC", "id", "name"),
}
View Source
var Router = wc.New("Category", model.StartModel, model.StopModel)
View Source
var Update = struct {
	Routes crudl.UpdatePOST[*model.Model]

	PathID   wc.PathArg
	FormName wc.FormArg
}{
	crudl.NewUpdatePOST(Router, "category-update"),

	wc.NewPathArg("id"),
	wc.NewFormArg("name").String(),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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