ing
This commit is contained in:
parent
dabc9777a4
commit
8c014c571f
14
src/ts/discovery/api/model/Host.ts
Normal file
14
src/ts/discovery/api/model/Host.ts
Normal 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;
|
15
src/ts/discovery/api/model/Port.ts
Normal file
15
src/ts/discovery/api/model/Port.ts
Normal 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;
|
8
src/ts/discovery/api/model/PortType.ts
Normal file
8
src/ts/discovery/api/model/PortType.ts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
enum PortType {
|
||||||
|
TCP = 1,
|
||||||
|
UDP = 2,
|
||||||
|
TLS = 3,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PortType;
|
14
src/ts/discovery/api/model/Service.ts
Normal file
14
src/ts/discovery/api/model/Service.ts
Normal 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;
|
11
src/ts/domain/api/model/DomainMember.ts
Normal file
11
src/ts/domain/api/model/DomainMember.ts
Normal 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;
|
Loading…
Reference in New Issue
Block a user