refactor(config): 调整MapBoss结构体字段类型 - 将BossMonID字段从[]int切片类型改为int单值类型,并移除相关定义 - 将WinBonusID和FailBonusID字段从[]int切片类型改为int单值类型, 并设置默认值为0 - 移除多余的空行和格式调整,保持代码整洁
This commit is contained in:
22
modules/config/controller/admin/map_boss.go
Normal file
22
modules/config/controller/admin/map_boss.go
Normal 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(),
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user