```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(space): 添加地图模型配置支持并优化BOSS信息结构

添加MapModel字段到MapBossInfo结构体中,用于存储更完整的BOSS模型数据,
修改初始化逻辑从新的MapModel服务获取数据,并更新HP恢复逻辑使用新模型数据。

同时优化MapNode配置表结构,移除冗余字段并调整数据查询逻辑,
将IsBroadcast字段类型改为uint32以
This commit is contained in:
昔念
2026-04-01 06:27:03 +08:00
parent 977fc78cf6
commit 1b6586aedc
7 changed files with 145 additions and 53 deletions

View File

@@ -0,0 +1,22 @@
package admin
import (
"blazing/cool"
"blazing/modules/config/service"
)
type MapModelController struct {
*cool.Controller
}
func init() {
// 注册路由
cool.RegisterController(&MapModelController{
&cool.Controller{
Prefix: "/admin/config/mapmodel",
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
Service: service.NewMapmodelService(),
},
})
}