revamp template
This commit is contained in:
50
src/types/GlobalTypes.ts
Normal file
50
src/types/GlobalTypes.ts
Normal file
@ -0,0 +1,50 @@
|
||||
export interface TableResponseTypes<T> {
|
||||
status: boolean;
|
||||
count: number;
|
||||
data: T[];
|
||||
}
|
||||
|
||||
export interface TableParamsTypes {
|
||||
limit: number;
|
||||
page: number;
|
||||
}
|
||||
|
||||
export interface ActionResponseTypes {
|
||||
status: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface ActionMenuReponseTypes {
|
||||
status: boolean;
|
||||
message: string;
|
||||
data?: {
|
||||
role_name: string;
|
||||
roles_list: RoleList[];
|
||||
token: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export interface RoleList {
|
||||
children?: RoleList[];
|
||||
icon: string;
|
||||
id: string;
|
||||
id_parent: string;
|
||||
link: string;
|
||||
module: string;
|
||||
name: string;
|
||||
order_number: number;
|
||||
}
|
||||
export interface MappedMenu {
|
||||
title: string;
|
||||
path?: string;
|
||||
children?: MappedMenu[];
|
||||
}
|
||||
// export interface ChildrenRole {
|
||||
// icon: string;
|
||||
// id: string;
|
||||
// id_parent: string;
|
||||
// link: string;
|
||||
// module: string;
|
||||
// name: string;
|
||||
// order_number: number;
|
||||
// }
|
||||
Reference in New Issue
Block a user