Files
bl/modules/config/service/effect.go
昔念 e5c75f7359
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-02-13 22:57:05 +08:00

32 lines
588 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type EffectService struct {
*cool.Service
}
func (s *EffectService) Args(id uint32) (int, []int) {
m := dbm_fix(s.Model).Where("se_idx", id)
var tt model.PlayerPetSpecialEffect
m.Scan(&tt)
return int(tt.Eid), tt.Args
}
func NewEffectService() *EffectService {
return &EffectService{
&cool.Service{
Model: model.NewPlayerPetSpecialEffect(),
UniqueKey: map[string]string{"idx_se_idx": "索引不能重复"},
PageQueryOp: &cool.QueryOp{
KeyWordField: []string{"desc"},
},
},
}
}