36 lines
735 B
Go
36 lines
735 B
Go
package gameinvite
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
type GameInvite struct {
|
|
modules.ModuleBase
|
|
service comm.IService
|
|
api *apiComp
|
|
model *modelComp
|
|
dcolor comm.IDColor
|
|
}
|
|
|
|
func NewModule() core.IModule {
|
|
return &GameInvite{}
|
|
}
|
|
|
|
func (this *GameInvite) GetType() core.M_Modules {
|
|
return comm.ModuleGameInvite
|
|
}
|
|
|
|
func (this *GameInvite) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
|
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
|
return
|
|
}
|
|
this.service = service.(comm.IService)
|
|
return
|
|
}
|
|
|
|
func (this *GameInvite) GameInviteEnd(gtype int32, uid string) {
|
|
this.model.endQiecuo(gtype, uid)
|
|
}
|