feat: add notification type
This commit is contained in:
parent
780a262979
commit
ff95d207d2
1 changed files with 6 additions and 1 deletions
|
|
@ -4,7 +4,12 @@ import { api } from 'src/boot/axios';
|
||||||
import { PaginationResult } from 'src/types';
|
import { PaginationResult } from 'src/types';
|
||||||
import { createDataRefBase } from '../utils';
|
import { createDataRefBase } from '../utils';
|
||||||
|
|
||||||
export type Notification = {};
|
export type Notification = {
|
||||||
|
title: string;
|
||||||
|
detail: string;
|
||||||
|
receiverId?: string;
|
||||||
|
groupId?: string[];
|
||||||
|
};
|
||||||
|
|
||||||
export const useNotification = defineStore('noti-store', () => {
|
export const useNotification = defineStore('noti-store', () => {
|
||||||
const state = createDataRefBase<Notification>();
|
const state = createDataRefBase<Notification>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue