Files
hats-app/types/rbac.ts
T
Ichsan Kurniawan 6ffe7746c8 Improve RBAC management and permissions UI
Unify interactive and read-only role permission rows, refine role and menu forms and labels, and correct the access-permissions sidebar route. Update role payloads and admin-menu handling.
2026-11-05 20:37:39 +07:00

59 lines
1.1 KiB
TypeScript

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;
}