/**
 * 通知相关的 Mock 处理器
 */
import { http, HttpResponse } from 'msw';
import { notificationTypeData } from '../data/notification.js';
import { delay } from '../utils.js';

export const notificationHandlers = [
  // 获取通知类型接口
  http.get('https://shop.trust-will.com/admin/notification/notificationType', async () => {
    await delay(200);

    // 直接返回通知类型数据
    return HttpResponse.json(notificationTypeData);
  }),
];
