21 lines
499 B
TypeScript
21 lines
499 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { IsNotEmpty, IsString } from "class-validator";
|
|
|
|
export class CreateShiftCodeDto {
|
|
|
|
@ApiProperty({
|
|
example: 'Regular or Night or Emergency, etc...',
|
|
description: 'Type of shifts for an account perception',
|
|
})
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
shift_type: string;
|
|
|
|
@ApiProperty({
|
|
example: 'G1, G2, G3, etc...',
|
|
description: 'bank`s code related to the type of shift',
|
|
})
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
bank_code: string;
|
|
} |