go_dreamfactory/modules/uigame/api.go
2023-08-08 15:49:52 +08:00

40 lines
886 B
Go

package uigame
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
const (
VikingGetListResp = "getlist"
VikingChallengeResp = "challenge"
VikingChallengeOverResp = "challengeover"
VikingSkillLvResp = "skilllv"
VikingGetRewardResp = "getreward"
VikingBuyResp = "buy"
VikingRankListResp = "ranklist"
VikingSeasonRankReq = "seasonrank"
)
type apiComp struct {
modules.MCompGate
service core.IService
configure *configureComp
module *UiGame
}
//组件初始化接口
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompGate.Init(service, module, comp, options)
this.module = module.(*UiGame)
this.service = service
return
}
func (this *apiComp) Start() (err error) {
err = this.MCompGate.Start()
return
}