Files
rk-backend/src/_dto/anlagen/units.ts
T
2026-10-06 13:46:04 +02:00

61 lines
991 B
TypeScript

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