feat: add sync permissions functionality and UI integration
This commit is contained in:
@@ -91,6 +91,12 @@ export type AdminPermission = {
|
||||
sortNo: number
|
||||
}
|
||||
|
||||
export type PermissionSyncResult = {
|
||||
created: number
|
||||
updated: number
|
||||
rolePermissionsAdded: number
|
||||
}
|
||||
|
||||
export type ConversationTag = {
|
||||
id: number
|
||||
name: string
|
||||
@@ -1240,6 +1246,12 @@ export function fetchPermissions(
|
||||
)
|
||||
}
|
||||
|
||||
export function syncPermissions() {
|
||||
return request<PermissionSyncResult>("/api/dashboard/permission/sync", {
|
||||
method: "POST",
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchConversations(
|
||||
query?: Record<string, string | number | undefined>
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user