feat: integrasi notifikasi backend dengan frontend
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export interface BackendNotification {
|
||||
id: number;
|
||||
id_user: number | null;
|
||||
id_admin: number | null;
|
||||
title: string;
|
||||
message: string;
|
||||
is_read: boolean;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface UINotification {
|
||||
id: number;
|
||||
type: string; // "new-task" | "achievement" | "system"
|
||||
title: string;
|
||||
time: string;
|
||||
isNew: boolean;
|
||||
group: "TODAY" | "YESTERDAY";
|
||||
description: string;
|
||||
}
|
||||
Reference in New Issue
Block a user