From 6eeea6f2682ade79273cd377dc9359798cadbe93 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 7 May 2026 19:39:47 +0800 Subject: [PATCH] chore: sync local changes --- ops-platform/src/api/ops.ts | 20 +- .../src/views/push/PushDiagnosticsView.vue | 20 +- .../views/services/ServiceRequestsView.vue | 2 +- tenant-platform/src/api/app.ts | 30 +-- tenant-platform/src/api/im.ts | 200 +++++++++--------- tenant-platform/src/api/push.ts | 18 +- tenant-platform/src/api/update.ts | 50 ++--- tenant-platform/src/router/index.ts | 22 +- tenant-platform/src/views/im/ImConfigView.vue | 10 +- .../src/views/im/ImManagementView.vue | 6 +- .../src/views/im/ImWebhookView.vue | 18 +- .../src/views/im/WebhookAlertView.vue | 10 +- .../src/views/im/WebhookDeliveryLogView.vue | 8 +- .../src/views/push/PushConfigView.vue | 2 +- .../src/views/push/PushManagementView.vue | 14 +- .../src/views/update/StoreGuideView.vue | 4 +- .../views/update/VersionManagementView.vue | 44 ++-- 17 files changed, 239 insertions(+), 239 deletions(-) diff --git a/ops-platform/src/api/ops.ts b/ops-platform/src/api/ops.ts index e9eb093..8841deb 100644 --- a/ops-platform/src/api/ops.ts +++ b/ops-platform/src/api/ops.ts @@ -41,7 +41,7 @@ export interface Statistics { export interface ServiceRequest { id: string - appId: string + appKey: string platform: string serviceType: string status: 'PENDING' | 'APPROVED' | 'REJECTED' @@ -69,7 +69,7 @@ export interface AppItem { export interface FeatureServiceItem { id: string - appId: string + appKey: string platform: string serviceType: string enabled: boolean @@ -148,7 +148,7 @@ export interface PushDeviceInfo { export interface PushDiagnostics { tokenType: 'PUSH' | 'IM' | 'UNKNOWN' - appId?: string + appKey?: string userId?: string online: boolean lastSeenAt: number @@ -160,7 +160,7 @@ export interface PushDiagnostics { export interface PushDeviceLog { id: string - appId: string + appKey: string userId: string vendor: string tokenPreview: string @@ -182,7 +182,7 @@ export interface PushDeviceLogPage { } export interface PushTestResult { - appId: string + appKey: string userId: string sent: boolean targetCount: number @@ -248,12 +248,12 @@ export const opsApi = { deleteSensitiveWord: (id: string) => client.delete(`/ops/risk/sensitive-words/${id}`), - searchPushByToken: (token: string, appId = '') => - client.get<{ data: PushDiagnostics }>('/ops/push/search', { params: { token, appId } }), + searchPushByToken: (token: string, appKey = '') => + client.get<{ data: PushDiagnostics }>('/ops/push/search', { params: { token, appKey } }), - listPushDeviceLogs: (appId: string, userId: string, page = 0, size = 20) => - client.get<{ data: PushDeviceLogPage }>('/ops/push/device-logs', { params: { appId, userId, page, size } }), + listPushDeviceLogs: (appKey: string, userId: string, page = 0, size = 20) => + client.get<{ data: PushDeviceLogPage }>('/ops/push/device-logs', { params: { appKey, userId, page, size } }), - sendPushTestOffline: (payload: { appId: string; userId: string; title: string; body: string; payload?: string }) => + sendPushTestOffline: (payload: { appKey: string; userId: string; title: string; body: string; payload?: string }) => client.post<{ data: PushTestResult }>('/ops/push/test-offline', payload), } diff --git a/ops-platform/src/views/push/PushDiagnosticsView.vue b/ops-platform/src/views/push/PushDiagnosticsView.vue index 5c454f2..e757d2d 100644 --- a/ops-platform/src/views/push/PushDiagnosticsView.vue +++ b/ops-platform/src/views/push/PushDiagnosticsView.vue @@ -9,7 +9,7 @@ {{ diagnostics.online ? '用户在线' : '用户离线' }} - + 查询 @@ -101,7 +101,7 @@