forked from Yara724/api
Initial commit after migration to gitea
This commit is contained in:
24
src/plates/dto/plate.dto.ts
Normal file
24
src/plates/dto/plate.dto.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
|
||||
export class PlatesDto {
|
||||
@ApiProperty({ type: "number" })
|
||||
leftDigits: number;
|
||||
|
||||
@ApiProperty({ type: "string" })
|
||||
centerAlphabet: string;
|
||||
|
||||
@ApiProperty({ type: "number" })
|
||||
centerDigits: number;
|
||||
|
||||
@ApiProperty({ type: "number" })
|
||||
ir: number;
|
||||
}
|
||||
export class PlatesDtoRs extends PlatesDto {
|
||||
constructor(newPlate: PlatesDto) {
|
||||
super();
|
||||
this.leftDigits = newPlate.leftDigits;
|
||||
this.centerAlphabet = newPlate.centerAlphabet;
|
||||
this.centerDigits = newPlate.centerDigits;
|
||||
this.ir = newPlate.ir;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user