// 统一导出所有API模块 export { authApi } from './auth.js'; export { homeApi } from './home.js'; export { bookshelfApi, myBookApi, achievementApi } from './bookshelf.js'; export { moneyApi, commentApi, taskApi, writerApi, orderApi } from './user.js'; export { smsApi } from './sms.js'; // 默认导出,方便直接使用 import { authApi } from './auth.js'; import { homeApi } from './home.js'; import { bookshelfApi, myBookApi, achievementApi } from './bookshelf.js'; import { moneyApi, commentApi, taskApi, writerApi, orderApi } from './user.js'; import { smsApi } from './sms.js'; export default { // 授权登录 auth: authApi, // 首页 home: homeApi, // 书架相关 bookshelf: bookshelfApi, myBook: myBookApi, achievement: achievementApi, // 用户相关 money: moneyApi, comment: commentApi, task: taskApi, writer: writerApi, order: orderApi, // 短信验证码 sms: smsApi };