1
This commit is contained in:
parent
a231d35453
commit
70edc57d8f
24
server/wheelserver/service/buff.go
Normal file
24
server/wheelserver/service/buff.go
Normal file
@ -0,0 +1,24 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"f5"
|
||||
"main/model"
|
||||
"main/constant"
|
||||
)
|
||||
|
||||
type buff struct {
|
||||
|
||||
}
|
||||
|
||||
func (this *buff) init() {
|
||||
}
|
||||
|
||||
func (this *buff) unInit() {
|
||||
}
|
||||
|
||||
func (this *buff) List(accountId string) (error, []*model.Buff) {
|
||||
buffs := []*model.Buff{}
|
||||
result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Buff).TableName()).Where(
|
||||
"account_id = ?", accountId).Find(&buffs)
|
||||
return result.Error, buffs
|
||||
}
|
@ -11,6 +11,7 @@ var Log = new(log)
|
||||
var GM = new(gm)
|
||||
var Award = new(award)
|
||||
var Bag = new(bag)
|
||||
var Buff = new(buff)
|
||||
|
||||
func init() {
|
||||
global.RegModule(constant.SERVICE_MGR_MODULE_IDX, _serviceMgr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user