inicio passcode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Expose } from 'class-transformer';
|
||||
|
||||
export class PasscodeOutputDto {
|
||||
@Expose()
|
||||
code;
|
||||
|
||||
@Expose()
|
||||
passcode;
|
||||
|
||||
@Expose()
|
||||
id_locker;
|
||||
|
||||
@Expose()
|
||||
door;
|
||||
}
|
||||
Reference in New Issue
Block a user