fix: 修复添加管理员失败无信息提示
This commit is contained in:
parent
0bdb39797d
commit
201943994b
@ -511,6 +511,7 @@ public enum ResultCode {
|
||||
CONNECT_NOT_EXIST(90000, "登录方式不存在!"),
|
||||
ELASTICSEARCH_INDEX_INIT_ERROR(90003, "索引初始化失败!"),
|
||||
PURCHASE_ORDER_DEADLINE_ERROR(90004, "供求单,已超过报名截止时间"),
|
||||
USER_ADD_ERROR(90005, "用户添加失败"),
|
||||
INDEX_BUILDING(90005, "索引正在生成");
|
||||
|
||||
|
||||
|
@ -168,10 +168,11 @@ public class AdminUserManagerController {
|
||||
throw new ServiceException(ResultCode.PERMISSION_BEYOND_TEN);
|
||||
}
|
||||
adminUserService.saveAdminUser(adminUser, roles);
|
||||
return ResultUtil.success();
|
||||
} catch (Exception e) {
|
||||
log.error("添加用户错误", e);
|
||||
return ResultUtil.error(ResultCode.USER_ADD_ERROR);
|
||||
}
|
||||
return ResultUtil.success();
|
||||
}
|
||||
|
||||
@PutMapping(value = "/enable/{userId}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user