| 123456789101112131415161718192021222324252627282930 |
- import * as booking from './module/booking'
- import * as tracking from './module/tracking'
- import * as common from './module/common'
- import * as login from './module/login'
- import * as other from './module/other'
- import * as notificationMessage from './module/notificationMessage'
- import * as system from './module/system'
- /**
- * api 对象接口定义
- */
- function generateApiMap(maps: any) {
- const methodMap: any = {}
- for (const key in maps) {
- methodMap[key] = maps[key]
- }
- return methodMap
- }
- const apis = generateApiMap({
- ...booking,
- ...tracking,
- ...common,
- ...login,
- ...other,
- ...notificationMessage,
- ...system
- })
- export default {
- ...apis // 取出所有可遍历属性赋值在新的对象上
- }
|