package user import ( "yunyan/modules" "yunyan/lego/base" "yunyan/lego/core" ) type apiV2Comp struct { modules.MCompHttpGate service base.IRPCXService module *User options *Options } func (this *apiV2Comp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { this.MCompHttpGate.Init(service, module, comp, options) this.service = service.(base.IRPCXService) this.module = module.(*User) this.options = options.(*Options) this.Version = "v2" this.EncryptMsgs = []string{"GetAppConfig"} return } func (this *apiV2Comp) Start() (err error) { err = this.MCompHttpGate.Start() return }