feat: ✨ 新增用户模型查询

This commit is contained in:
何嘉悦
2025-05-28 02:45:15 +08:00
parent 3ab287536c
commit 4b39bbb2a5
8 changed files with 187 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
import type { GetSessionListVO } from './types';
import { get } from '@/utils/request';
// 获取当前用户的模型列表
export function getModelList() {
return get<GetSessionListVO[]>('/system/model/modelList');
}
+14
View File
@@ -0,0 +1,14 @@
// 查询用户模型列表返回的数据结构
export interface GetSessionListVO {
id?: number;
category?: string;
modelName?: string;
modelDescribe?: string;
modelPrice?: number;
modelType?: string;
modelShow?: string;
systemPrompt?: string;
apiHost?: string;
apiKey?: string;
remark?: string;
}