From 8c014c571f2378a9e8100f3889826e8e5fd28520 Mon Sep 17 00:00:00 2001 From: snoop Date: Mon, 3 Jul 2017 15:10:35 +0900 Subject: [PATCH] ing --- src/ts/discovery/api/_ | 0 src/ts/discovery/api/model/Host.ts | 14 ++++++++++++++ src/ts/discovery/api/model/Port.ts | 15 +++++++++++++++ src/ts/discovery/api/model/PortType.ts | 8 ++++++++ src/ts/discovery/api/model/Service.ts | 14 ++++++++++++++ src/ts/discovery/api/model/_ | 0 src/ts/domain/api/model/DomainMember.ts | 11 +++++++++++ 7 files changed, 62 insertions(+) delete mode 100644 src/ts/discovery/api/_ create mode 100644 src/ts/discovery/api/model/Host.ts create mode 100644 src/ts/discovery/api/model/Port.ts create mode 100644 src/ts/discovery/api/model/PortType.ts create mode 100644 src/ts/discovery/api/model/Service.ts delete mode 100644 src/ts/discovery/api/model/_ create mode 100644 src/ts/domain/api/model/DomainMember.ts diff --git a/src/ts/discovery/api/_ b/src/ts/discovery/api/_ deleted file mode 100644 index e69de29..0000000 diff --git a/src/ts/discovery/api/model/Host.ts b/src/ts/discovery/api/model/Host.ts new file mode 100644 index 0000000..019d55a --- /dev/null +++ b/src/ts/discovery/api/model/Host.ts @@ -0,0 +1,14 @@ +import Port from './Port'; + +interface Host { + id: number; + ip: number; + mac: number; + createDate: Date; + updateDate: Date; + os: string; + target: boolean; + ports: Port[]; +} + +export default Host; \ No newline at end of file diff --git a/src/ts/discovery/api/model/Port.ts b/src/ts/discovery/api/model/Port.ts new file mode 100644 index 0000000..4268285 --- /dev/null +++ b/src/ts/discovery/api/model/Port.ts @@ -0,0 +1,15 @@ +import Host from './Host'; +import Service from './Service'; +import PortType from './PortType'; + +interface Port { + id: number; + host: Host; + portType: PortType; + portNumber: number; + services: Service[]; + createDate: Date; + updateDate: Date; +} + +export default Port; \ No newline at end of file diff --git a/src/ts/discovery/api/model/PortType.ts b/src/ts/discovery/api/model/PortType.ts new file mode 100644 index 0000000..972b0a8 --- /dev/null +++ b/src/ts/discovery/api/model/PortType.ts @@ -0,0 +1,8 @@ + +enum PortType { + TCP = 1, + UDP = 2, + TLS = 3, +} + +export default PortType; \ No newline at end of file diff --git a/src/ts/discovery/api/model/Service.ts b/src/ts/discovery/api/model/Service.ts new file mode 100644 index 0000000..084ee17 --- /dev/null +++ b/src/ts/discovery/api/model/Service.ts @@ -0,0 +1,14 @@ +import Port from './Port'; +import PortType from './PortType'; + +interface Service { + id: number; + port: Port; + portType: PortType; + serviceName: string; + createDate: Date; + updateDate: Date; + target: boolean; +} + +export default Service; \ No newline at end of file diff --git a/src/ts/discovery/api/model/_ b/src/ts/discovery/api/model/_ deleted file mode 100644 index e69de29..0000000 diff --git a/src/ts/domain/api/model/DomainMember.ts b/src/ts/domain/api/model/DomainMember.ts new file mode 100644 index 0000000..bc6bb72 --- /dev/null +++ b/src/ts/domain/api/model/DomainMember.ts @@ -0,0 +1,11 @@ +import Member from 'member/api/model/Member'; +import Domain from './Domain'; + +interface DomainMember { + id: number; + createDate: Date; + member: Member; + domain: Domain; +} + +export default DomainMember; \ No newline at end of file