示例#1
0
func NewController(c *X.Context) *Controller {
	a := &Controller{
		Controller: X.NewController(c),
		DB:         DB,
	}
	return a
}
示例#2
0
文件: main.go 项目: webx-top/webx
func (a *Index) Init(c *X.Context) error {
	a.Controller = X.NewController(c)
	return nil
}