Merge branch 'master' of https://gitcode.com/hk_openRepo/OpenRepo_Portal into junjie_dev

# Conflicts:
#	src/api/jyh/index.ts
#	src/components/AdvanceSearch/index.vue
#	src/views/Jyh/Home/index.vue
This commit is contained in:
@user8949
2025-03-18 20:26:52 +08:00
23 changed files with 492 additions and 355 deletions

View File

@@ -1,14 +1,56 @@
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({
url: '/api/v1/group/member/invite/list',
method: 'get'
}, {
customError: true
}));
}
// 处理邀请
export function acceptInvite(params): catchRt<any> {
return reqCatchV2(() => request({
url: '/api/v1/group/member/invite/accept',
method: 'post',
data: params,
}, {
customError: true
}));
}
// 发送订阅
export function subscribeSoftware(params): catchRt<any> {
return reqCatchV2(() => request({
url: '/api/v1/alert/subscribe',
method: 'post',
data: params,
}, {
customError: true
}));
}
// 获取高级筛选语言列表
export function searchLanguageList() {
return request({
@@ -43,4 +85,4 @@ export function getRepairInfo() {
method: 'get',
params: {}
});
}
}