import { ApiClientFactory } from '../core/api.client.factory'; export class FileDataManageService { constructor(private factory: ApiClientFactory) {} // 删除图片(巡检抓拍) async deleteImage(projectId: string, ids: string[]): Promise { const result = await this.factory.entity.delete(`/api/images/deleteByIds`, { projectId, ids }); return result; } // 删除视频(延时摄影) async deleteShortVideo(projectId: string, ids: string[]): Promise { const result = await this.factory.entity.delete(`/api/shortVideo/deleteByIds`, { projectId, ids }); return result; } // 企业级删除视频(延时摄影) async deleteOrgShortVideo(tenantId: string, ids: string[]): Promise { const result = await this.factory.entity.delete(`/api/shortVideo/org/deleteByIds`, { tenantId, ids }); return result; } // 删除视频(无人机) async deleteVideoRecord(projectId: string, ids: string[]): Promise { const result = await this.factory.entity.delete(`/api/record/deleteByIds`, { projectId, ids }); return result; } // AI批量删除 async deleteAIHistory(projectId: string, ids: string[]): Promise { const result = await this.factory.entity.delete(`/api/events/deleteByIds`, { projectId, ids }); return result; } // 企业级无人机巡检批量删除图片 async deleteUavOrgImage(ids: string[]): Promise { const result = await this.factory.entity.delete(`/api/dji/inspection/deleteByIds`, { ids }); return result; } // 企业级无人机巡检下载图片 async downloadUavOrgImage(ids: string[]): Promise { const result = await this.factory.file.post(`/api/dji/inspection/downloadByIds`, { ids }); return result; } }