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

33 lines
492 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type BossService struct {
*cool.Service
}
func NewBossService() *BossService {
return &BossService{
&cool.Service{
Model: model.NewBossConfig(),
PageQueryOp: &cool.QueryOp{
KeyWordField: []string{"desc"},
},
},
}
}
func (s *BossService) Get(id uint32) *model.BossConfig {
if id == 0 {
return nil
}
var item *model.BossConfig
dbm_fix(s.Model).Where("id", id).Scan(&item)
return item
}