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

refactor(config): 调整MapBoss结构体字段类型

- 将BossMonID字段从[]int切片类型改为int单值类型,并移除相关定义
- 将WinBonusID和FailBonusID字段从[]int切片类型改为int单值类型,
  并设置默认值为0
- 移除多余的空行和格式调整,保持代码整洁
This commit is contained in:
昔念
2026-02-24 22:58:58 +08:00
parent 813eb4c3cd
commit 931809edc4
3 changed files with 48 additions and 5 deletions

View File

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