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 @@