小说网站前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
941 B

3 weeks ago
3 weeks ago
3 weeks ago
  1. // 统一导出所有API模块
  2. export { authApi } from './auth.js';
  3. export { homeApi } from './home.js';
  4. export { bookshelfApi, myBookApi, achievementApi } from './bookshelf.js';
  5. export { moneyApi, commentApi, taskApi, writerApi, orderApi } from './user.js';
  6. export { smsApi } from './sms.js';
  7. // 默认导出,方便直接使用
  8. import { authApi } from './auth.js';
  9. import { homeApi } from './home.js';
  10. import { bookshelfApi, myBookApi, achievementApi } from './bookshelf.js';
  11. import { moneyApi, commentApi, taskApi, writerApi, orderApi } from './user.js';
  12. import { smsApi } from './sms.js';
  13. export default {
  14. // 授权登录
  15. auth: authApi,
  16. // 首页
  17. home: homeApi,
  18. // 书架相关
  19. bookshelf: bookshelfApi,
  20. myBook: myBookApi,
  21. achievement: achievementApi,
  22. // 用户相关
  23. money: moneyApi,
  24. comment: commentApi,
  25. task: taskApi,
  26. writer: writerApi,
  27. order: orderApi,
  28. // 短信验证码
  29. sms: smsApi
  30. };