package web import ( "go_dreamfactory/comm" "go_dreamfactory/modules" "github.com/liwei1dao/lego/core" ) func NewModule() core.IModule { m := new(Web) return m } type Web struct { modules.ModuleBase options *Options user_comp *User_Comp } func (this *Web) GetType() core.M_Modules { return comm.SM_WebModule } func (this *Web) NewOptions() (options core.IModuleOptions) { return new(Options) } func (this *Web) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) this.options = options.(*Options) return } func (this *Web) Start() (err error) { err = this.ModuleBase.Start() return } func (this *Web) OnInstallComp() { this.ModuleBase.OnInstallComp() this.user_comp = this.RegisterComp(new(User_Comp)).(*User_Comp) }