category

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiDelete = wc.GET("ApiDelete", "/api/delete/%s", PathArgs.ID)
View Source
var ApiList = wc.GET("ApiList", "/api/list/").SetArgs(QueryArgs.OrderBy)
View Source
var ApiPatch = wc.PATCH("ApiPatch", "/api/patch/%s", PathArgs.ID)
View Source
var ApiPut = wc.PUT("ApiPut", "/api/put/")
View Source
var HtmlEdit = wc.GET("HtmlEdit", "/html/edit/%s", PathArgs.ID).
	SetArgs(QueryArgs.Limit, QueryArgs.OrderBy, QueryArgs.Page)
View Source
var HtmlList = wc.GET("HtmlList", "/html/list/").SetArgs(QueryArgs.Limit, QueryArgs.OrderBy, QueryArgs.Page)
View Source
var Model = &model{}
View Source
var PathArgs = struct {
	ID wc.PathArg
}{
	wc.NewPathArg("id"),
}
View Source
var QueryArgs = struct {
	Limit   wc.QueryArgOpt
	OrderBy wc.QueryArgOpt
	Page    wc.QueryArgOpt
}{
	wc.NewQueryArgOpt("limit").Int(),
	wc.NewQueryArgOpt("orderby").String(),
	wc.NewQueryArgOpt("page").Int(),
}
View Source
var Router = wc.New("Category", "/category")

Functions

This section is empty.

Types

type Category

type Category struct {
	ID   int
	Name string
}

Jump to

Keyboard shortcuts

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