251213:1509 Docunment Number Businee Rule not correct
This commit is contained in:
@@ -10,10 +10,25 @@ import {
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class CreateRfaRevisionDto {
|
||||
@ApiProperty({ description: 'RFA Title', example: 'RFA for Building A' })
|
||||
@ApiProperty({ description: 'RFA Subject', example: 'RFA for Building A' })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
title!: string;
|
||||
subject!: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Body', example: '<p>...</p>' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
body?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Remarks', example: 'Note' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
remarks?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Due Date', example: '2025-12-06' })
|
||||
@IsDateString()
|
||||
@IsOptional()
|
||||
dueDate?: string;
|
||||
|
||||
@ApiProperty({ description: 'RFA Status Code ID', example: 1 })
|
||||
@IsInt()
|
||||
|
||||
@@ -35,7 +35,22 @@ export class CreateRfaDto {
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
title!: string;
|
||||
subject!: string;
|
||||
|
||||
@ApiProperty({ description: 'Body', required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
body?: string;
|
||||
|
||||
@ApiProperty({ description: 'Remarks', required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
remarks?: string;
|
||||
|
||||
@ApiProperty({ description: 'Due Date', required: false })
|
||||
@IsDateString()
|
||||
@IsOptional()
|
||||
dueDate?: string;
|
||||
|
||||
@ApiProperty({ description: 'รายละเอียดเพิ่มเติม', required: false })
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user