Files
bl/modules/config/service/map_pit.go
昔念 8a072bd028
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
feat(config): 修改地图坑位配置的数据结构

- 将MapPit结构体中的MapID字段从数组类型[]int32改为单个int32类型
- 更新数据库标签,移除数组类型定义,添加非空约束和索引
- 修改JSON标签注释为"所属地图ID"
- 在服务层的查询操作中添加map_id字段的相等查询支持
```
2026-02-24 19:20:38 +08:00

23 lines
357 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type MapPitService struct {
*cool.Service
}
func NewMapPitService() *MapPitService {
return &MapPitService{
&cool.Service{
Model: model.NewMapPit(),
PageQueryOp: &cool.QueryOp{
KeyWordField: []string{"remake"},
FieldEQ: []string{"map_id"},
},
},
}
}