Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/api/jyh/index.ts
This commit is contained in:
付民康
2025-03-19 12:35:05 +08:00
13 changed files with 190 additions and 102 deletions

View File

@@ -142,10 +142,36 @@ export const getVulnList = (data): Promise<any> => {
request({
url: `/api/v1/repo/vulnerability/page`,
method: 'post',
data,
data
})
);
}
};
// 获取SBOM依赖树
export const dependencyTree = (softwareId: any): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/repo/dependency/tree`,
method: 'POST',
data: {
softwareId,
current: 1,
size: 99999
}
})
);
};
// 编辑用户信息(包含订阅默认预警方式)
export const userEdit = (data: any): Promise<any> => {
return reqCatchV2(() =>
request({
url: `/api/v1/user/edit`,
method: 'POST',
data
})
);
};
// 获取漏洞数据
export const getVulnDetail = (data): Promise<any> => {
@@ -153,21 +179,21 @@ export const getVulnDetail = (data): Promise<any> => {
request({
url: `/api/v1/repo/vulnerability/info`,
method: 'POST',
data,
data
})
);
}
};
// 迁移批量导入
export function repoImport(data: types.commonRepoReqType){
export function repoImport(data: types.commonRepoReqType) {
return reqCatchV2(() =>
request({
url: `/api/v1/home/software/valid`,
method: 'post',
data,
headers: {
'Content-Type': 'multipart/form-data', // 设置请求头
},
'Content-Type': 'multipart/form-data' // 设置请求头
}
})
);
}
@@ -178,10 +204,10 @@ export const getNoticeList = (data): Promise<any> => {
request({
url: `/api/v1/alert/notice/list`,
method: 'POST',
data,
data
})
);
}
};
// 个人中心-获取组织级预警列表
export const getgroupNoticeList = (data): Promise<any> => {
@@ -189,10 +215,10 @@ export const getgroupNoticeList = (data): Promise<any> => {
request({
url: `/api/v1/alert/group/notice/list`,
method: 'POST',
data,
data
})
);
}
};
// 个人中心-获取订阅列表
export const getSubscribeList = (data): Promise<any> => {