// API 服务层 - 整合所有服务
export * from './address';
export * from './award';
export * from './base';
export * from './config';
export * from './http';
export * from './mall';
export * from './user';

// 重新导出类型
export type { AddAddressParams, Address, AreaItem } from './address';
export type { IPItem, PoolItem } from './award';
export type { BannerItem, PageConfig, TabItem } from './base';
export type { GoodsDetail, GoodsItem, GoodsListParams, OrderDetail, OrderItem } from './mall';
export type { LoginParams, ParamConfig, UserInfo } from './user';

// 默认导出所有服务
import addressService from './address';
import awardService from './award';
import baseService from './base';
import mallService from './mall';
import userService from './user';
import walletService from './wallet'; // Add import

export const services = {
  mall: mallService,
  award: awardService,
  base: baseService,
  address: addressService,
  user: userService,
  wallet: walletService, // Add export
};

export default services;
