Files
bl/modules/config/service/effect.go

32 lines
524 B
Go
Raw Normal View History

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type EffectService struct {
*cool.Service
}
func (s *EffectService) Args(id []uint32) []model.PlayerPetSpecialEffect {
m := dbm_notenable(s.Model).WhereIn("id", id)
var tt []model.PlayerPetSpecialEffect
m.Scan(&tt)
return tt
}
func NewEffectService() *EffectService {
return &EffectService{
&cool.Service{
Model: model.NewPlayerPetSpecialEffect(),
PageQueryOp: &cool.QueryOp{
KeyWordField: []string{"desc"},
},
},
}
}