mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 11:21:18 +00:00
18 lines
434 B
TypeScript
18 lines
434 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsInt, Max, Min } from 'class-validator';
|
|
|
|
export class AcceptContractDto {
|
|
@ApiProperty({
|
|
description:
|
|
'How many days the contract stays valid, counted from the accept date. ' +
|
|
'The contract is valid from now through now + validityDays.',
|
|
minimum: 1,
|
|
maximum: 3650,
|
|
example: 365,
|
|
})
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(3650)
|
|
validityDays!: number;
|
|
}
|