软件校验接口对接
This commit is contained in:
@@ -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', // 设置请求头
|
||||
},
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user