You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
665 B

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
}