增加下载同步功能,可以导出已下载作品。避免另一个设备的重复下载,修复日志bug

This commit is contained in:
2025-10-01 18:58:50 +08:00
parent d3121bf7dd
commit 0d294536ca
23 changed files with 1818 additions and 230 deletions
+35 -1
View File
@@ -213,6 +213,40 @@ class DownloadService {
eventSource.close();
};
}
/**
* 获取下载注册表统计信息
*/
async getRegistryStats() {
return apiService.get('/api/download/registry/stats');
}
/**
* 导出下载注册表
*/
async exportRegistry() {
return apiService.get('/api/download/registry/export');
}
/**
* 导入下载注册表
*/
async importRegistry(registryData: any) {
return apiService.post('/api/download/registry/import', { registryData });
}
/**
* 重建下载注册表
*/
async rebuildRegistry() {
return apiService.post('/api/download/registry/rebuild');
}
/**
* 清理下载注册表
*/
async cleanupRegistry() {
return apiService.post('/api/download/registry/cleanup');
}
}
export default new DownloadService();
export default new DownloadService();