oa_based/src/modules/materials_inventory/materials_inventory.dto.ts

24 lines
608 B
TypeScript
Raw Normal View History

2024-03-04 14:17:53 +08:00
import { ApiProperty, IntersectionType, PartialType } from '@nestjs/swagger';
import {
IsArray,
IsDate,
IsDateString,
IsIn,
IsInt,
IsNumber,
IsOptional,
IsString,
Matches,
MinLength
} from 'class-validator';
import { PagerDto } from '~/common/dto/pager.dto';
import { Storage } from '../tools/storage/storage.entity';
2024-03-04 17:31:28 +08:00
export class MaterialsInventoryDto {}
2024-03-04 14:17:53 +08:00
2024-03-04 17:31:28 +08:00
export class MaterialsInventoryUpdateDto extends PartialType(MaterialsInventoryDto) {}
2024-03-04 14:17:53 +08:00
export class MaterialsInventoryQueryDto extends IntersectionType(
PagerDto<MaterialsInventoryDto>,
PartialType(MaterialsInventoryDto)
) {}