软件校验接口对接

This commit is contained in:
付民康
2025-03-19 10:44:39 +08:00
parent 863e946f44
commit 3b819a07c3
6 changed files with 75 additions and 24 deletions

View File

@@ -1,5 +1,6 @@
import { reqCatchV2, type catchRt } from '@/utils/catch';
import request from '@/utils/request';
import * as types from '@/api/repo/types';
// 详情-获取版本信息
export function releaseInfo(params: { softwareId: string }): Promise<any> {
@@ -134,3 +135,17 @@ export function getVulnerabilityList() {
}
});
}
// 迁移批量导入
export function repoImport(data: types.commonRepoReqType){
return reqCatchV2(() =>
request({
url: `/api/v1/home/software/valid`,
method: 'post',
data,
headers: {
'Content-Type': 'multipart/form-data', // 设置请求头
},
})
);
}