From 9e47b14d2524462a41955aaf60870c2ea38d3a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=B3=E6=98=8C?= Date: Thu, 28 Mar 2019 23:08:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(essage):=20=E6=9B=B4=E6=96=B0=20essage=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dashboard.ts | 2 +- src/api/internal.ts | 2 +- src/api/org-structure.ts | 2 +- src/api/report-app.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/dashboard.ts b/src/api/dashboard.ts index 7d6a6df2..4dbb9c0c 100644 --- a/src/api/dashboard.ts +++ b/src/api/dashboard.ts @@ -4,7 +4,7 @@ import { APIBase, factory, IFactory } from './base' export interface DashboardAPI { registerHostNode(): Promise setReady(): Promise - essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise + essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise openDetail(type: 'task' | 'event' | 'work' | 'post' | 'entry' | 'collection', ...params: any[]): Promise openDashboardModal(...params: any[]): Promise closeFloat(): Promise diff --git a/src/api/internal.ts b/src/api/internal.ts index 5a446960..40ce531b 100644 --- a/src/api/internal.ts +++ b/src/api/internal.ts @@ -3,7 +3,7 @@ import { APIBase, factory, IFactory } from './base' export interface InternalAPI { registerHostNode(): Promise - essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise + essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise openDetail(type: 'task' | 'date' | 'file' | 'post' | 'bookkeeping', ...params: any[]): Promise } diff --git a/src/api/org-structure.ts b/src/api/org-structure.ts index adb06d5c..b85540b3 100644 --- a/src/api/org-structure.ts +++ b/src/api/org-structure.ts @@ -3,7 +3,7 @@ import { APIBase, factory, IFactory } from './base' export interface OrgStructureAPI { start(...params: any[]): Promise - essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise + essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise finish(...params: any[]): Promise openChatWindow(...params: any[]): Promise navigate(...params: any[]): Promise diff --git a/src/api/report-app.ts b/src/api/report-app.ts index b85eb7db..49c70049 100644 --- a/src/api/report-app.ts +++ b/src/api/report-app.ts @@ -3,7 +3,7 @@ import { APIBase, factory, IFactory } from './base' export interface ReportAppAPI { start(...params: any[]): Promise - essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise + essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise finish(...params: any[]): Promise requestLeavingLock(): Promise releaseLeavingLock(): Promise