controller

package
v0.13.19 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	FormName web.FormArg[string]
}{
	crudl.NewCreate(Router, "category-create"),

	args.FormName,
}
View Source
var Delete = struct {
	Routes crudl.DeleteGET[*model.Model]

	PathID web.PathArg[int]
}{
	crudl.NewDeleteGET(Router, "category-delete"),

	args.PathID,
}
View Source
var List = struct {
	Routes crudl.List[*model.Model]

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

	args.QueryOther,
	crudl.NewTableArgs[*model.Model]("id", "ASC", "id", "name"),
}
View Source
var Router = web.New("Category", model.StartModel).SetVerbose()
View Source
var Update = struct {
	Routes crudl.UpdatePOST[*model.Model]

	PathID   web.PathArg[int]
	FormName web.FormArg[string]
}{
	crudl.NewUpdatePOST(Router, "category-update"),

	args.PathID,
	args.FormName,
}

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