Files
Situation-Awareness-Platfor…/src/api/jyh/index.ts

33 lines
828 B
TypeScript
Raw Normal View History

2025-03-18 17:13:54 +08:00
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;
return request({
url: `/api/v1/repo/release/info?repo_id=${repoId}&releaseId=${releaseId}`,
method: 'get'
});
}
2025-03-18 17:13:54 +08:00
// 获取用户信息
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
}));
}