From f3076b7a91677831cd9a32325e87f9064d394b3a Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 31 Jul 2017 12:37:00 +0900 Subject: [PATCH] ing --- src/ts/@overflow/domain/api/model/Domain.ts | 6 ++--- src/ts/@overflow/probe/api/model/Probe.ts | 26 +++++++++---------- .../probe/react/components/ProbeList.tsx | 4 +++ 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/ts/@overflow/domain/api/model/Domain.ts b/src/ts/@overflow/domain/api/model/Domain.ts index 80a405c..db57e45 100644 --- a/src/ts/@overflow/domain/api/model/Domain.ts +++ b/src/ts/@overflow/domain/api/model/Domain.ts @@ -1,9 +1,9 @@ interface Domain { - id: number; - name: string; - createDate: Date; + id?: number; + name?: string; + createDate?: Date; } diff --git a/src/ts/@overflow/probe/api/model/Probe.ts b/src/ts/@overflow/probe/api/model/Probe.ts index bc7eaa6..1a42e0d 100644 --- a/src/ts/@overflow/probe/api/model/Probe.ts +++ b/src/ts/@overflow/probe/api/model/Probe.ts @@ -5,19 +5,19 @@ import InfraHost from '@overflow/infra/api/model/InfraHost'; interface Probe { id?: number; - status: MetaProbeStatus; // INITIAL / NORMAL - description: string; - createDate: Date; - domain: Domain; - probeKey: string; - encryptionKey: string; - targetCount: number; - sensorCount: number; - displayName: string; - cidr: string; - authorizeDate: Date; - authorizeMember: Member; - host: InfraHost; + status?: MetaProbeStatus; // INITIAL / NORMAL + description?: string; + createDate?: Date; + domain?: Domain; + probeKey?: string; + encryptionKey?: string; + targetCount?: number; + sensorCount?: number; + displayName?: string; + cidr?: string; + authorizeDate?: Date; + authorizeMember?: Member; + host?: InfraHost; } export default Probe; diff --git a/src/ts/@overflow/probe/react/components/ProbeList.tsx b/src/ts/@overflow/probe/react/components/ProbeList.tsx index c717c79..d67d890 100644 --- a/src/ts/@overflow/probe/react/components/ProbeList.tsx +++ b/src/ts/@overflow/probe/react/components/ProbeList.tsx @@ -33,6 +33,10 @@ export class ProbeList extends React.Component { } public componentWillMount(): void { + // let domain: Domain = { + // id: 1, + // }; + // this.props.onReadAllByDomain(domain); this.data = [ { 'id': 11,