Skip to content

Commit 1b355ae

Browse files
committed
[Upgrade] 调整默认角色编码
1 parent ec383e5 commit 1b355ae

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cloud/acp-admin-cloud-constant/src/main/kotlin/pers/acp/admin/constant/RoleCode.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object RoleCode {
1313
/**
1414
* 新建角色时默认值
1515
*/
16-
const val OTHER = "OTHER"
16+
const val BUSINESS = "BUSINESS"
1717

1818
/**
1919
* 超级管理员

cloud/oauth-server/src/main/kotlin/pers/acp/admin/oauth/controller/api/AuthController.kt

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ constructor(private val logAdapter: LogAdapter, private val menuDomain: MenuDoma
6161
moduleFuncCodeList.add(value)
6262
}
6363
}
64+
moduleFuncCodeList.sort()
6465
} catch (e: Exception) {
6566
logAdapter.error(e.message, e)
6667
}

cloud/oauth-server/src/main/kotlin/pers/acp/admin/oauth/controller/api/RoleController.kt

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ constructor(private val logAdapter: LogAdapter, private val roleDomain: RoleDoma
6060
}
6161
}
6262
}
63+
roleCodeList.sort()
6364
} catch (e: Exception) {
6465
logAdapter.error(e.message, e)
6566
}

0 commit comments

Comments
 (0)