import { ApiClientFactory } from '../../core/api.client.factory'; import { ProjectList, ProjectInfo } from '../../model/company/projectMap.model'; export class ProjectMap { constructor(private factory: ApiClientFactory) {} /** * 获取项目列表(仅开通视频的) * @param orgId * @param tenantId * @param projectStatus * @returns */ async loadProjectList(orgId: string, tenantId: string, projectStatus?: string): Promise { const result = await this.factory.entity.get(`api/org/projects`, { orgId, tenantId, projectStatus }); return result; } async loadProjectInfo(projectId: string): Promise { const result = await this.factory.entity.get(`api/org/project`, { projectId }); return result; } /** * 获取所有项目列表(含未开通视频的) * @param orgId * @param tenantId * @returns */ async loadProjectAllList(orgId: string, tenantId: string, projectStatus?: string): Promise { const result = await this.factory.entity.get(`api/org/projectAll`, { orgId, tenantId, projectStatus, }); return result; } }