2025-03-25 17:10:33 +05:30

22 lines
432 B
TypeScript

import { IsNumber,IsString } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";
export class InsertRegionsDto {
@ApiProperty()
@IsString()
p_region: string;
@ApiProperty()
@IsString()
p_name: string;
}
export class UpdateRegionDto {
@ApiProperty({ required: true })
@IsNumber()
p_regionID: number;
@ApiProperty({ required: true })
@IsString()
p_name: string;
}