import { ApiClientFactory } from '../core'; import { DeploymentListReq, DeploymentListRes, OrgListRes } from '../model/HummingbirdDeploymentList.model'; export class HummingbirdDeploymentListService { constructor(private factory: ApiClientFactory) {} /** * 获取蜂鸟部署清单 * @param params * @returns */ async fetchDeploymentList(params: DeploymentListReq) { const url = `/box/scheme/page`; const result = await this.factory.surveillance.get(url, params); return result; } /** * 获取公司项目列表 * @param tenantId * @returns */ async fetchOrgList(tenantId: string) { const result = await this.factory.surveillance.get('/box/scheme/orgList', { tenantId }); return result; } }