This commit is contained in:
aozhiwei 2024-11-21 15:12:42 +08:00
parent a231d35453
commit 70edc57d8f
2 changed files with 25 additions and 0 deletions

View 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
}

View File

@ -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)