Files
antrean-operasi/types/setting.ts
2026-02-27 13:26:52 +07:00

49 lines
854 B
TypeScript

// Types for Setting related functionality
export interface User {
id: string;
name: string;
email: string;
hak_akses: string[];
}
// API Response Types
export interface UserApiItem {
id: string;
name: string;
email: string;
hak_akses: string[];
}
export interface Pagination {
Limit: number;
Offset: number;
Total: number;
TotalPages: number;
CurrentPage: number;
HasNext: boolean;
HasPrev: boolean;
}
export interface ListUserResponse {
success: boolean;
code: number;
message: string;
data: UserApiItem[];
Paginate: Pagination;
}
export interface HakAkses {
id: string;
name: string;
is_active: boolean;
}
export interface ListRoleResponse {
success: boolean;
code: number;
message: string;
data: HakAkses[];
Paginate: Pagination;
}