漏洞详情接口接入

This commit is contained in:
MaxShen
2025-03-19 10:34:17 +08:00
parent 6fca623d07
commit 8c1be60229
4 changed files with 51 additions and 47 deletions

View File

@@ -107,3 +107,25 @@ export function getLicenseList() {
}
});
}
// 获取漏洞数据
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,
})
);
}

View File

@@ -1543,13 +1543,3 @@ export const getOriginalComment = (params: types.DiscussionCommentProps): Promis
);
}
// 获取漏洞数据
export const getVulnDetail = (params: types.VulnDetailProps): Promise<any> => {
return reqCatch(() =>
request({
url: `/api/v1/repo/vulnerability/info`,
method: 'get',
params,
})
);
}