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.
Click to show internal directories.
Click to hide internal directories.