Add unit module with controller, service, dtos, and middleware

This commit is contained in:
faris Aljohari
2024-04-13 17:55:28 +03:00
parent 120939b470
commit c0e84d80d4
11 changed files with 482 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
export interface GetUnitByUuidInterface {
uuid: string;
createdAt: Date;
updatedAt: Date;
name: string;
type: string;
}
export interface UnitChildInterface {
uuid: string;
name: string;
type: string;
totalCount?: number;
children?: UnitChildInterface[];
}
export interface UnitParentInterface {
uuid: string;
name: string;
type: string;
parent?: UnitParentInterface;
}