251128:1700 Backend to T3.1.1
This commit is contained in:
19
backend/src/modules/json-schema/dto/migrate-data.dto.ts
Normal file
19
backend/src/modules/json-schema/dto/migrate-data.dto.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// File: src/modules/json-schema/dto/migrate-data.dto.ts
|
||||
import { IsString, IsNotEmpty, IsInt, IsOptional } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class MigrateDataDto {
|
||||
@ApiProperty({ description: 'The schema code to migrate to (e.g., RFA_DWG)' })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
targetSchemaCode!: string;
|
||||
|
||||
@ApiProperty({
|
||||
description: 'Target version. If omitted, migrates to latest.',
|
||||
required: false,
|
||||
})
|
||||
@IsInt()
|
||||
@IsOptional()
|
||||
targetVersion?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user