角色分配用户("/bath-assign-user-role")内方法重写,解决角色分配用户只能新增不能移除的问题

This commit is contained in:
gaoqr
2024-06-18 17:56:12 +08:00
parent 961c66dbb0
commit 8f96785267
6 changed files with 113 additions and 16 deletions
@@ -33,6 +33,7 @@ public interface ErrorCodeConstants {
ErrorCode ROLE_IS_DISABLE = new ErrorCode(1_002_002_004, "名字为【{}】的角色已被禁用");
ErrorCode ROLE_ADMIN_CODE_ERROR = new ErrorCode(1_002_002_005, "编码【{}】不能使用");
ErrorCode ROLE_ME_ERROR = new ErrorCode(1_002_002_006, "不可为自身分配角色");
ErrorCode ROLE_NOT_SUPERADMIN_NO_ORGAN_ID_OPER_ERROR = new ErrorCode(1_002_002_007, "非超管分配权限");
// ========== 用户模块 1-002-003-000 ==========
ErrorCode USER_USERNAME_EXISTS = new ErrorCode(1_002_003_000, "用户账号已经存在");