/**
 * Services 统一入口 - 所有 API 服务的统一导出
 * 
 * 模块拆分说明：
 * - auth: 认证服务（登录、注册、用户信息）
 * - book: 书籍服务（上传、记录、条码识别）
 * - goods: 商品服务（商品管理、克隆工具）
 * - warehouse: 仓库服务（仓库、货架、订单）
 * 
 * 使用方式：
 * import { authApi, bookApi, goodsApi, warehouseApi } from '@/services'
 * 
 * 或按需导入：
 * import { authApi } from '@/services/modules/auth'
 */
import { authApi, registerApi, userApi } from './modules/auth'
import { bookApi, barcodeApi } from './modules/book'
import { goodsApi, cloneApi, priceCompareApi } from './modules/goods'
import { warehouseApi, shelfApi, orderApi, quickShelfApi } from './modules/warehouse'

// 统一导出所有 API
export {
  // 认证相关
  authApi,
  registerApi,
  userApi,
  
  // 书籍相关
  bookApi,
  barcodeApi,
  
  // 商品相关
  goodsApi,
  cloneApi,
  priceCompareApi,
  
  // 仓库相关
  warehouseApi,
  shelfApi,
  orderApi,
  quickShelfApi
}

// 默认导出对象（兼容旧代码）
export default {
  auth: authApi,
  register: registerApi,
  user: userApi,
  book: bookApi,
  barcode: barcodeApi,
  goods: goodsApi,
  clone: cloneApi,
  priceCompare: priceCompareApi,
  warehouse: warehouseApi,
  shelf: shelfApi,
  order: orderApi,
  quickShelf: quickShelfApi
}
