AI修复建议接口对接
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { reqCatchV2, type catchRt } from '@/utils/catch';
|
||||
import request from '@/utils/request';
|
||||
import * as types from '@/api/repo/types';
|
||||
import axios from 'axios';
|
||||
|
||||
// 详情-获取版本信息
|
||||
export function releaseInfo(params: { softwareId: string }): Promise<any> {
|
||||
@@ -263,3 +264,16 @@ export const getReleaseExport = (data): Promise<any> => {
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// 获取AI修复建议
|
||||
export function getVulSuggestion(data) {
|
||||
return axios.request({
|
||||
url: '/gateway/detect' + `/ai/vul_suggestion`,
|
||||
method: 'POST',
|
||||
data,
|
||||
headers: {
|
||||
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user