package user import ( "go_dreamfactory/comm" "go_dreamfactory/modules" "github.com/liwei1dao/lego/core" ) func NewModule() core.IModule { m := new(User) return m } type User struct { modules.ModuleBase login_comp *LoginComp } func (this *User) GetType() core.M_Modules { return comm.SM_LoginModule } func (this *User) OnInstallComp() { this.ModuleBase.OnInstallComp() this.login_comp = this.RegisterComp(new(LoginComp)).(*LoginComp) }