hrms-admin/src/modules/02_users/interface/index/Main.ts

56 lines
1 KiB
TypeScript
Raw Normal View History

2024-05-29 17:58:57 +07:00
interface Pagination {
page: number;
2024-05-29 17:58:57 +07:00
rowsPerPage: number;
}
interface ItemsMenu {
label: string;
icon: string;
color: string;
type: string;
}
interface DataOption {
id: string;
name: string;
}
interface SystemList {
attrIsCreate: boolean;
attrIsDelete: boolean;
attrIsGet: boolean;
attrIsList: boolean;
attrIsUpdate: boolean;
attrOwnership: string;
attrPrivilege: string;
id: string;
order: 1;
parentId: string | null;
selected: boolean;
sysDescription: string;
sysName: string;
children?: SystemList[];
}
interface DataSystem {
attrIsCreate: boolean;
attrIsDelete: boolean;
attrIsGet: boolean;
attrIsList: boolean;
attrIsUpdate: boolean;
attrOwnership: string;
attrPrivilege: string;
authRoleId: string;
authSysId: string;
createdAt: string;
createdFullName: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
parentNode: string;
}
export type { Pagination, ItemsMenu, DataOption, SystemList, DataSystem };