Add RBAC menu and role management

Adds permission, menu, and role administration with hierarchical access controls, plus admin breadcrumbs and a redirect from the legacy user-role page. Remove `credentials.md` before committing; it contains server credentials.
This commit is contained in:
Ichsan Kurniawan
2026-11-05 19:01:40 +07:00
parent 4d2ceefba7
commit 751b28fab2
35 changed files with 3004 additions and 1160 deletions
+58
View File
@@ -0,0 +1,58 @@
export interface IPermission {
id?: number;
name: string;
description?: string;
status?: {
id?: number;
code?: string;
name?: string;
};
created_at?: string;
updated_at?: string;
}
export interface IMenu {
id?: number;
code?: string;
name: string;
path_url: string;
description?: string;
icon?: string;
is_admin_menu?: boolean;
menu_parent_id?: number | null;
action?: string[];
status?: {
id?: number;
code?: string;
name?: string;
};
children?: IMenu[];
menu_level?: number;
}
export interface IRoleDetail {
menu_id: number;
menu_name: string;
menu_path: string;
is_admin_menu: boolean;
action: string[];
}
export interface IRole {
id?: number;
code?: string;
name: string;
description?: string;
allow_admin_panel?: boolean;
allow_admin?: boolean;
role_detail?: IRoleDetail[];
privilege?: any[];
status?: {
id?: number;
code?: string;
name?: string;
};
created_at?: string;
updated_at?: string;
}