func (a *Base) Init(c *X.Context) error { a.Controller = base.NewController(c) a.User = &dbschema.User{} return nil }
func New(c *X.Context) *Base { return &Base{ Controller: base.NewController(c), } }
func (a *Public) Init(c *X.Context) error { a.Controller = base.NewController(c) a.user = model.NewUser(c) return nil }