mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 14:44:55 +00:00
Add building interfaces for parent and child relationships
This commit is contained in:
21
src/building/interface/building.interface.ts
Normal file
21
src/building/interface/building.interface.ts
Normal file
@ -0,0 +1,21 @@
|
||||
export interface GetBuildingByUuidInterface {
|
||||
uuid: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
name: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface BuildingChildInterface {
|
||||
uuid: string;
|
||||
name: string;
|
||||
type: string;
|
||||
totalCount?: number;
|
||||
children?: BuildingChildInterface[];
|
||||
}
|
||||
export interface BuildingParentInterface {
|
||||
uuid: string;
|
||||
name: string;
|
||||
type: string;
|
||||
parent?: BuildingParentInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user