feat: streamline occupancy check-in and imports

This commit is contained in:
2026-07-14 12:23:53 +08:00
parent 718c58589f
commit d84f37e98f
11 changed files with 322 additions and 78 deletions

View File

@@ -1,4 +1,4 @@
import { IsInt, IsString, IsOptional, IsArray } from 'class-validator';
import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';
export class CheckInDto {
@IsInt()
@@ -23,8 +23,14 @@ export class CheckInDto {
stayType?: string;
@IsOptional()
@IsInt()
responsibleOrganizationId?: number;
@IsBoolean()
collectDeposit?: boolean;
@IsOptional()
@IsNumber()
@Min(0.01)
depositAmount?: number;
@IsInt()
bedId: number;