完成SCA:蚕茧模块演示效果

This commit is contained in:
BBIT-Kai
2025-06-10 15:32:22 +08:00
parent 89adaf02b9
commit 617cc3162e
19 changed files with 620 additions and 44 deletions
+1
View File
@@ -2,4 +2,5 @@ export * from './auth';
export * from './iva';
export * from './menu';
export * from './remote';
export * from './sca';
export * from './user';
+12 -1
View File
@@ -8,10 +8,21 @@ export async function refreshVideoList(name = '') {
}
/**
* 获取已分析的视频列表
* 获取已分析的视频
*/
export async function refreshVideoDetail(vId = '') {
return requestClient.get('/iva/getAnalyticsDetailByVideoId', {
params: { vId },
});
}
/**
* 上传视频分析任务
*/
export async function createVideoTask(formData: FormData) {
return requestClient.post('/iva/createVideoTask', formData, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
}
+19
View File
@@ -0,0 +1,19 @@
import { requestClient } from '#/api/request';
/**
* 获取已分析的图片列表
*/
export async function refreshImageList(name = '') {
return requestClient.get('/sca/getImageList', { params: { name } });
}
/**
* 上传图片分析任务
*/
export async function createImageTask(formData: FormData) {
return requestClient.post('/sca/createImageTask', formData, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
}