This commit is contained in:
31
modules/config/service/map.go
Normal file
31
modules/config/service/map.go
Normal file
@@ -0,0 +1,31 @@
|
||||
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_enable(s.Model)
|
||||
|
||||
m.Wheref(`male_pet_ids @> ARRAY[?]::integer[]`, p1).Scan(&ret)
|
||||
|
||||
return
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user