优化 素材库新增处理优化,提速,其余bug处理
This commit is contained in:
1 parent
ad774d8a22
commit
4bce6f5d72
67 files changed
+4861
-3111
No files matched your search
@@ -1,47 +1,21 @@
|
||||
/**
|
||||
* 扫描 API
|
||||
* 扫描 API(简化版)
|
||||
*/
|
||||
|
||||
import { api } from '../client';
|
||||
|
||||
/**
|
||||
* 全量扫描
|
||||
*/
|
||||
export async function fullScan(libraryId, wait = false) {
|
||||
return api.post('/scan/full', { libraryId, wait });
|
||||
}
|
||||
|
||||
/**
|
||||
* 增量同步
|
||||
*/
|
||||
export async function sync(libraryId, wait = false) {
|
||||
return api.post('/scan/sync', { libraryId, wait });
|
||||
}
|
||||
|
||||
/**
|
||||
* 停止扫描
|
||||
*/
|
||||
export async function stop(libraryId) {
|
||||
return api.post('/scan/stop', { libraryId });
|
||||
}
|
||||
|
||||
/**
|
||||
* 继续扫描
|
||||
*/
|
||||
export async function resume(libraryId) {
|
||||
return api.post('/scan/resume', { libraryId });
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取扫描状态
|
||||
*/
|
||||
export async function getStatus(libraryId) {
|
||||
return api.get(`/scan/status/${libraryId}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修复文件夹路径
|
||||
*/
|
||||
export async function fixFolders(libraryId) {
|
||||
return api.post('/scan/fix-folders', { libraryId });
|
||||
}
|
||||
Reference in new issue
Block a user