fix: 增加号池快捷切换
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user