fix:增加用户中心,完成Apikey功能页,增加角色工具方法

This commit is contained in:
Gsh
2025-07-04 00:12:26 +08:00
parent e996bc2d7f
commit c637d412e6
10 changed files with 814 additions and 10 deletions

View File

@@ -1,8 +1,16 @@
import type { GetSessionListVO } from './types';
import { get } from '@/utils/request';
import { get, post } from '@/utils/request';
// 获取当前用户的模型列表
export function getModelList() {
// return get<GetSessionListVO[]>('/system/model/modelList');
return get<GetSessionListVO[]>('/ai-chat/model').json();
}
// 申请ApiKey
export function applyApiKey() {
return post<any>('/token').json();
}
// 获取ApiKey
export function getApiKey() {
return get<any>('/token').json();
}