merge dev-shenjianbin into master

漏洞详情接口接入

Created-by: MaxShen
Commit-by: MaxShen
Merged-by: MaxShen
Description: 漏洞详情接口接入

See merge request: hk_openRepo/OpenRepo_Portal!34
This commit is contained in:
MaxShen
2025-03-19 10:35:18 +08:00
4 changed files with 51 additions and 47 deletions

View File

@@ -134,3 +134,25 @@ export function getVulnerabilityList() {
}
});
}
// 获取漏洞数据
export const getVulnList = (data): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/vulnerability/page`,
method: 'post',
data,
})
);
}
// 获取漏洞数据
export const getVulnDetail = (data): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/vulnerability/info`,
method: 'POST',
data,
})
);
}