This commit is contained in:
insanity 2017-07-31 12:37:00 +09:00
parent 7610a40bed
commit f3076b7a91
3 changed files with 20 additions and 16 deletions

View File

@ -1,9 +1,9 @@
interface Domain {
id: number;
name: string;
createDate: Date;
id?: number;
name?: string;
createDate?: Date;
}

View File

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

View File

@ -33,6 +33,10 @@ export class ProbeList extends React.Component<Props, State> {
}
public componentWillMount(): void {
// let domain: Domain = {
// id: 1,
// };
// this.props.onReadAllByDomain(domain);
this.data = [
{
'id': 11,