Merge branch 'master' of https://gitcode.com/hk_openRepo/OpenRepo_Portal into dev-shenjianbin
This commit is contained in:
@@ -2,14 +2,23 @@ import { reqCatchV2, type catchRt } from '@/utils/catch';
|
||||
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
|
||||
});
|
||||
}
|
||||
|
||||
// 获取邀请列表
|
||||
export function getInviteListData(): catchRt<any> {
|
||||
return reqCatchV2(() => request({
|
||||
|
||||
Reference in New Issue
Block a user