Round6: 前台图片缩略图+下载/视频修复; 后台连接测试单次+自动消失; 导航重组; 存储中文化; 自动化去掉创建按钮; 短信验证码(注册/重置/充值通知)
This commit is contained in:
1 parent
ba09017884
commit
d179cc2f02
14 files changed
+806
-149
No files matched your search
@@ -180,6 +180,12 @@ export const authAPI = {
|
||||
|
||||
getSettings: () => get<any>('/auth/settings'),
|
||||
|
||||
sendCode: (phone: string, purpose: string) =>
|
||||
post<any>('/auth/send-code', { phone, purpose }),
|
||||
|
||||
resetPassword: (data: { phone: string; code: string; new_password: string }) =>
|
||||
post<any>('/auth/reset-password', data),
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -501,13 +507,6 @@ export const adminAPI = {
|
||||
|
||||
getDailyStats: (days?: number) => get<{ days: number; data: Array<{ date: string; tokens: number }> }>(`/admin/dashboard/daily-stats${days ? `?days=${days}` : ''}`),
|
||||
|
||||
// 驾驶舱分页日志
|
||||
getDashboardOperationLogs: (page = 1, pageSize = 20) =>
|
||||
get<any>(`/admin/dashboard/operation-logs?page=${page}&page_size=${pageSize}`),
|
||||
|
||||
getDashboardAuditLogs: (page = 1, pageSize = 20) =>
|
||||
get<any>(`/admin/dashboard/audit-logs?page=${page}&page_size=${pageSize}`),
|
||||
|
||||
// 用户管理
|
||||
|
||||
getUsers: (params?: any) => {
|
||||
@@ -1962,31 +1961,5 @@ export const imUserAPI = {
|
||||
|
||||
history: () => get<any>('/im/wechat/history'),
|
||||
|
||||
// 多平台 IM Bot(企业微信/飞书/QQ/悟空IM)
|
||||
getPlatforms: () => get<any>('/im/platform/platforms'),
|
||||
|
||||
listPlatforms: () => get<any>('/im/platform/list'),
|
||||
|
||||
platformConfig: (platform: string) => get<any>(`/im/platform/${platform}/config`),
|
||||
|
||||
savePlatformConfig: (platform: string, data: any) => post<any>(`/im/platform/${platform}/config`, data),
|
||||
|
||||
disconnectPlatform: (platform: string) => post<any>(`/im/platform/${platform}/disconnect`),
|
||||
|
||||
platformHistory: (platform: string) => get<any>(`/im/platform/${platform}/history`),
|
||||
|
||||
platformWebhookUrl: (platform: string) => get<any>(`/im/platform/${platform}/webhook-url`),
|
||||
|
||||
// 应用服务(已发布 AI 应用浏览)
|
||||
appServices: (params?: { category?: string; search?: string; page?: number; page_size?: number }) => {
|
||||
const qs = new URLSearchParams();
|
||||
if (params?.category) qs.set('category', params.category);
|
||||
if (params?.search) qs.set('search', params.search);
|
||||
if (params?.page) qs.set('page', String(params.page));
|
||||
if (params?.page_size) qs.set('page_size', String(params.page_size));
|
||||
const q = qs.toString();
|
||||
return get<any>(`/im/platform/apps${q ? `?${q}` : ''}`);
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user