swirl/controller/template.go

19 lines
391 B
Go
Raw Normal View History

2017-09-26 12:50:09 +00:00
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
}