refactor(common/data/xmlres): 注释掉未使用的MonsterMap配置变量 - 将MonsterMap配置变量注释掉,因为当前不再使用该配置 - 相应地注释掉了初始化代码中的MonsterMap赋值逻辑 feat(logic/controller): 统一CanFight方法返回值为ErrorCode - 修改PlayerFightBoss等战斗控制器中的Can
This commit is contained in:
@@ -3,9 +3,6 @@ package admin
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/service"
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type BossController struct {
|
||||
@@ -24,13 +21,13 @@ func init() {
|
||||
cool.RegisterController(task_info_controller)
|
||||
}
|
||||
|
||||
type GetListReq struct {
|
||||
g.Meta `path:"/getlist" method:"POST"`
|
||||
Id uint32 `json:"id" v:"required#请选择要查询的数据"`
|
||||
}
|
||||
// type GetListReq struct {
|
||||
// g.Meta `path:"/getlist" method:"POST"`
|
||||
// Id uint32 `json:"id" v:"required#请选择要查询的数据"`
|
||||
// }
|
||||
|
||||
func (this *BossController) GetList(ctx context.Context, req *GetListReq) (res *cool.BaseRes, err error) {
|
||||
res = &cool.BaseRes{}
|
||||
res.Data = service.NewBossService().GetList(req.Id)
|
||||
return res, nil
|
||||
}
|
||||
// func (this *BossController) GetList(ctx context.Context, req *GetListReq) (res *cool.BaseRes, err error) {
|
||||
// res = &cool.BaseRes{}
|
||||
// res.Data = service.NewBossService().GetList(req.Id)
|
||||
// return res, nil
|
||||
// }
|
||||
|
||||
@@ -16,7 +16,7 @@ func init() {
|
||||
&cool.Controller{
|
||||
Prefix: "/admin/config/mapboss",
|
||||
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
|
||||
Service: service.NewMapBossService(),
|
||||
Service: service.NewMapNodeService(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user