2026_08_31

This commit is contained in:
marco committed 2026-08-31 16:19:06 +02:00
commit 73015386e9
2320 files changed
+80291

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
import { ObjectId } from "mongoose";
import { ComponentResponseDto } from "./components";
export enum UnitTypeDto {
BAND = 'Band',
BRECHER = 'Brecher',
WEICHE = 'Weiche',
SIEB = 'Sieb',
}
//--- Unit
export class UnitResponseDto {
id!: string;
name!: string;
anlageId?: string;
bmk?: string;
prefix?: string;
info?: string;
type!: UnitTypeDto;
groupId!: string;
components!: ComponentResponseDto[];
}
export class UnitCreateDto {
name!: string;
anlageId?: string;
bmk!: string;
prefix!: string;
info!: string;
type!: UnitTypeDto;
groupId!: string;
components!: ComponentResponseDto[];
}
export class UnitUpdateBaseDto {
name?: string;
anlageId?: string;
bmk!: string;
prefix!: string;
info!: string;
type?: UnitTypeDto;
groupId?: string;
components?: ComponentResponseDto[];
}
export class UnitUpdateComponentDto {
name?: string;
type?: UnitTypeDto;
groupId?: string;
}