软件列表及软件版本详情接口对接
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 详情-获取版本信息
|
||||
export function releaseInfo(params: { repoId: string,releaseId: string }): Promise<any> {
|
||||
const { repoId,releaseId } = params;
|
||||
export function releaseInfo(params: { softwareId: string }): Promise<any> {
|
||||
const { softwareId } = params;
|
||||
return request({
|
||||
url: `/api/v1/repo/release/info?repo_id=${repoId}&releaseId=${releaseId}`,
|
||||
url: `/api/v1/repo/release/info?softwareId=${softwareId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 详情-搜索结果列表
|
||||
export function releasePage(data): Promise<any> {
|
||||
return request({
|
||||
url: `/api/v1/repo/release/page`,
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user