This commit is contained in:
snoop 2017-07-03 15:10:35 +09:00
parent dabc9777a4
commit 8c014c571f
7 changed files with 62 additions and 0 deletions

View File

View File

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

View File

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

View File

@ -0,0 +1,8 @@
enum PortType {
TCP = 1,
UDP = 2,
TLS = 3,
}
export default PortType;

View File

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

View File

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