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:
@@ -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,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user