refactor ticket
This commit is contained in:
@@ -37,13 +37,13 @@ export class CreateOrderItemAsUserDto {
|
||||
}
|
||||
|
||||
export class CreateOrderItemDtoAsAdmin extends CreateOrderItemAsUserDto {
|
||||
@ApiPropertyOptional({ example: [] })
|
||||
@IsArray()
|
||||
printAttributes?: IField[]
|
||||
// @ApiPropertyOptional({ example: [] })
|
||||
// @IsArray()
|
||||
// printAttributes?: IField[]
|
||||
|
||||
@ApiPropertyOptional({ example: [] })
|
||||
@IsArray()
|
||||
printAttachments?: IAttachment[]
|
||||
// @ApiPropertyOptional({ example: [] })
|
||||
// @IsArray()
|
||||
// printAttachments?: IAttachment[]
|
||||
|
||||
@IsInt()
|
||||
@ApiProperty()
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { IsArray, } from 'class-validator';
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IAttachment, IField } from '../interface/order.interface';
|
||||
|
||||
export class CreatePrintFormDto {
|
||||
@ApiPropertyOptional({ example: [] })
|
||||
@IsArray()
|
||||
printAttributes?: IField[]
|
||||
|
||||
@ApiPropertyOptional({ example: [] })
|
||||
@IsArray()
|
||||
printAttachments?: IAttachment[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user