Files
bl/modules/config/service/map.go
昔念 8e3ed21a3a
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-02-20 23:33:24 +08:00

32 lines
541 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type MapService struct {
*cool.Service
}
func NewMapService() *MapService {
return &MapService{
&cool.Service{
Model: model.NewMapConfig(),
PageQueryOp: &cool.QueryOp{
KeyWordField: []string{"remake"},
},
},
}
}
func (s *MapService) GetData(p1 uint32) (ret *model.MapConfig) {
//cacheKey := strings.Join([]string{fmt.Sprintf("%d", p1), fmt.Sprintf("%d", p2)}, ":")
m := dbm_notenable(s.Model)
m.Where(`map_id`, p1).Scan(&ret)
return
}