From ff95d207d2eb9a7c63f21cc88be31aa1131ce895 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 31 Oct 2024 17:53:10 +0700 Subject: [PATCH] feat: add notification type --- src/stores/notification/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stores/notification/index.ts b/src/stores/notification/index.ts index 1243de88..5aa43fe5 100644 --- a/src/stores/notification/index.ts +++ b/src/stores/notification/index.ts @@ -4,7 +4,12 @@ import { api } from 'src/boot/axios'; import { PaginationResult } from 'src/types'; import { createDataRefBase } from '../utils'; -export type Notification = {}; +export type Notification = { + title: string; + detail: string; + receiverId?: string; + groupId?: string[]; +}; export const useNotification = defineStore('noti-store', () => { const state = createDataRefBase();