feat(permission): replace OA roles with post-bound roles and assignee posts
Unify effective roles via post-role bindings, remove dedicated OA role UI, and update OA assignee resolution plus related SQL/docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a3c73d76bb
commit
06db3bc966
66 files changed
+55337
-38647
No files matched your search
@@ -833,6 +833,18 @@ export function fetchUpdatePostBoundUsers(postId: string, userIds: string[]) {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchPostBoundRoleIds(postId: string) {
|
||||
return request.get<{ roleIds: string[] }>({ url: `/web/admin/posts/${postId}/roles` })
|
||||
}
|
||||
|
||||
export function fetchUpdatePostBoundRoles(postId: string, roleIds: string[]) {
|
||||
return request.put({
|
||||
url: `/web/admin/posts/${postId}/roles`,
|
||||
params: { roleIds },
|
||||
showSuccessMessage: true
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 物品单位管理
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user