22 lines
432 B
TypeScript
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;
|
|
} |