```
feat(login): 优化登录服务错误处理和用户状态验证 - 修改GetUserInfo错误处理,将致命错误改为业务错误返回 - 移除登录查询中的status条件限制 - 添加账户封禁状态检查功能 - 修复缓存设置中的passwordVersion参数传递问题 refactor(task): 调整任务配置表结构和字段定义 - 将表名从task_config改为config_task - 移除TaskName字段 - 将ElfRewardIds从数组
This commit is contained in:
22
modules/config/controller/admin/task.go
Normal file
22
modules/config/controller/admin/task.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/service"
|
||||
)
|
||||
|
||||
type TaskController struct {
|
||||
*cool.Controller
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
// 注册路由
|
||||
cool.RegisterController(&TaskController{
|
||||
&cool.Controller{
|
||||
Prefix: "/admin/config/task",
|
||||
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
|
||||
Service: service.NewTaskService(),
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user