2026_08_31
This commit is contained in:
commit
73015386e9
2320 files changed
+80291
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user