Пример #1
0
func NewController(c *X.Context) *Controller {
	a := &Controller{
		Controller: X.NewController(c),
		DB:         DB,
	}
	return a
}
Пример #2
0
func (a *Index) Init(c *X.Context) error {
	a.Controller = X.NewController(c)
	return nil
}