refactor(common/utils): 重构concurrent_swiss_map使用官方sync.Map实现 - 替换原有的第三方并发map实现,改为基于标准库sync.Map的封装 - 保持完全的API兼容性,原有配置方法变为无实际作用的占位符 - 优化Range方法实现,移除goroutine/channel开销,避免潜在的死锁风险 - 移除依赖的外部库和
This commit is contained in:
@@ -15,7 +15,11 @@ func NewBossService() *BossService {
|
||||
Model: model.NewBossConfig(),
|
||||
PageQueryOp: &cool.QueryOp{
|
||||
KeyWordField: []string{"desc"},
|
||||
FieldEQ: []string{"boss_id", "map_id"},
|
||||
FieldEQ: []string{"map_id"},
|
||||
},
|
||||
ListQueryOp: &cool.QueryOp{
|
||||
KeyWordField: []string{"desc"},
|
||||
FieldEQ: []string{"map_id", "parentId"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ func NewMapService() *MapService {
|
||||
Model: model.NewMapConfig(),
|
||||
PageQueryOp: &cool.QueryOp{
|
||||
KeyWordField: []string{"remake"},
|
||||
FieldEQ: []string{"map_id"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ type MapBossService struct {
|
||||
func NewMapBossService() *MapBossService {
|
||||
return &MapBossService{
|
||||
&cool.Service{
|
||||
Model: model.NewMapBoss(),
|
||||
Model: model.NewMapNode(),
|
||||
PageQueryOp: &cool.QueryOp{
|
||||
KeyWordField: []string{"remake"},
|
||||
FieldEQ: []string{"map_id"},
|
||||
|
||||
Reference in New Issue
Block a user