index.js 551 B

12345678910111213141516171819202122
  1. /**
  2. * 导出所有 Mock 处理器
  3. */
  4. import { authHandlers } from './auth.js';
  5. import { notificationHandlers } from './notification.js';
  6. import { goodsHandlers } from './goods.js';
  7. import { categoryHandlers } from './category.js';
  8. import { orderHandlers } from './order.js';
  9. // 合并所有处理器
  10. export const handlers = [
  11. ...authHandlers,
  12. ...notificationHandlers,
  13. ...goodsHandlers,
  14. ...categoryHandlers,
  15. ...orderHandlers,
  16. // 后续可以添加更多处理器
  17. // ...adminHandlers,
  18. // ...userHandlers,
  19. ];
  20. export default handlers;