mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 11:06:29 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user