inicio passcode

This commit is contained in:
2022-10-31 12:16:34 -06:00
parent be7e3454cb
commit eb851fc5cc
12 changed files with 352 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
import { IsInt } from 'class-validator';
export class DevolucionDto {
@IsInt()
passcode: number;
}
@@ -0,0 +1,9 @@
import { IsInt } from 'class-validator';
export class NotificacionDto {
@IsInt()
passcode: number;
@IsInt()
estatus: number;
}
+9
View File
@@ -0,0 +1,9 @@
import { IsString } from 'class-validator';
export class PrestamoDto {
@IsString()
passcode: string;
@IsString()
id_locker: string;
}
@@ -0,0 +1,6 @@
import { Expose } from 'class-transformer';
export class DevolucionOutputDto {
@Expose()
code;
}
@@ -0,0 +1,6 @@
import { Expose } from 'class-transformer';
export class NotificacionOutputDto {
@Expose()
code;
}
+15
View File
@@ -0,0 +1,15 @@
import { Expose } from 'class-transformer';
export class PasscodeOutputDto {
@Expose()
code;
@Expose()
passcode;
@Expose()
id_locker;
@Expose()
door;
}