搜索结果列表页面开发

This commit is contained in:
付民康
2025-03-12 18:41:20 +08:00
commit 7cebe8fc00
739 changed files with 88149 additions and 0 deletions

35
src/api/storage-apis.ts Normal file
View File

@@ -0,0 +1,35 @@
import type { IRequestCache } from "@/utils/apiStorage";
const TIMEOUT = 5000;
const RETRY = 2;
export const storageApis: IRequestCache[] = [
{
url: '/api/v1/issues',
timeout: 5000,
retry: RETRY,
method: 'get',
excludeStatusCode: [401,403, 404]
},
{
url: '/api/v1/merge_requests',
timeout: TIMEOUT,
retry: RETRY,
method: 'get',
excludeStatusCode: [401,403, 404]
},
{
url: '/api/v1/projects/{projectId}/isource/merge_requests',
timeout: TIMEOUT,
retry: RETRY,
method: 'get',
excludeStatusCode: [401,403, 404]
},
{
url: '/api/v1/issue/{projectId}/issues',
timeout: TIMEOUT,
retry: RETRY,
method: 'get',
excludeStatusCode: [401,403, 404]
}
]