可信代码库-代码质量检测接口对接
This commit is contained in:
@@ -452,3 +452,35 @@ export function fetchUpdateRecommendQuestions(data) {
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
export function qualityTaskOverview(data) {
|
||||
const {softwareId} = data;
|
||||
return axios.request({
|
||||
url: `/gateway/quality/task-overview/software` + `/${softwareId}`,
|
||||
method: 'GET',
|
||||
// headers: {
|
||||
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
export function qualityDefectPage(data) {
|
||||
const {pageNum,pageSize,softwareId} = data;
|
||||
return axios.request({
|
||||
url: `/gateway/quality/defect/page` + `?pageNum=${pageNum}&pageSize=${pageSize}&softwareId=${softwareId}`,
|
||||
method: 'GET',
|
||||
// headers: {
|
||||
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
export function loginAccess() {
|
||||
return axios.request({
|
||||
url: `/gateway/u-auth/login-access`,
|
||||
method: 'POST',
|
||||
data: {},
|
||||
headers: {
|
||||
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user