mirror of
https://github.com/cuigh/swirl
synced 2025-01-03 17:42:29 +00:00
19 lines
391 B
Go
19 lines
391 B
Go
|
package controller
|
||
|
|
||
|
import "github.com/cuigh/auxo/net/web"
|
||
|
|
||
|
type TemplateController struct {
|
||
|
List web.HandlerFunc `path:"/" name:"template.list" authorize:"!" desc:"service template list page"`
|
||
|
}
|
||
|
|
||
|
func Template() (c *TemplateController) {
|
||
|
c = &TemplateController{}
|
||
|
|
||
|
c.List = func(ctx web.Context) error {
|
||
|
m := newModel(ctx)
|
||
|
return ctx.Render("service/template/list", m)
|
||
|
}
|
||
|
|
||
|
return
|
||
|
}
|