24 lines
381 B
TypeScript
24 lines
381 B
TypeScript
import { IsString, IsOptional, MaxLength, IsNotEmpty } from 'class-validator';
|
|
|
|
export class CorrectSkuDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(255)
|
|
name: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(100)
|
|
category?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(50)
|
|
barcode?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(255)
|
|
reason?: string;
|
|
}
|