swirl/controller/template.go
2017-09-26 20:50:09 +08:00

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
}