定义api

This commit is contained in:
2025-09-19 14:34:51 +08:00
parent fbf3f77229
commit 1e894b7700
5 changed files with 172 additions and 6 deletions

17
src/api/index.js Normal file
View File

@@ -0,0 +1,17 @@
import DeviceApi from './device.js';
import PlanApi from './plan.js';
import UserApi from './user.js';
/**
* API客户端
*/
export class ApiClient {
constructor() {
this.devices = DeviceApi;
this.plans = PlanApi;
this.users = UserApi;
}
}
// 导出API客户端实例
export default new ApiClient();