fix: 增加号池快捷切换

This commit is contained in:
Gsh
2026-01-20 00:15:33 +08:00
parent a1e38234a7
commit d280cc6d35
6 changed files with 316 additions and 31 deletions

View File

@@ -8,6 +8,7 @@ import type {
AiModelCreateInput,
AiModelUpdateInput,
AiModelGetListInput,
AppShortcutDto,
PagedResultDto,
} from './types';
@@ -103,3 +104,10 @@ export function deleteModel(id: string) {
export function clearPremiumModelCache() {
return post('/model/clear-premium-cache').json();
}
// ==================== 快捷渠道 ====================
// 获取快捷渠道列表
export function getAppShortcutList() {
return get<AppShortcutDto[]>('/channel/app-shortcut').json();
}

View File

@@ -117,6 +117,17 @@ export interface AiModelGetListInput {
maxResultCount?: number;
}
// 快捷渠道DTO
export interface AppShortcutDto {
id: string;
name: string;
endpoint: string;
extraUrl?: string;
apiKey: string;
orderNum: number;
creationTime: string;
}
// 分页结果
export interface PagedResultDto<T> {
items: T[];