forked from wangziqi/gongxue-base
test: harden business boundary conditions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ArrayNotEmpty, IsArray, IsIn, IsInt, IsOptional, IsString, Matches, MaxLength } from 'class-validator';
|
||||
import { ArrayNotEmpty, IsArray, IsIn, IsInt, IsNotEmpty, IsOptional, IsString, Matches, MaxLength } from 'class-validator';
|
||||
|
||||
export class GenerateBillsDto {
|
||||
@IsString()
|
||||
@@ -21,6 +21,8 @@ export class UpdateBillStatusDto {
|
||||
|
||||
export class CancelBillDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@Matches(/\S/)
|
||||
@MaxLength(300)
|
||||
reason: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user