initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { IsOptional, IsString, IsNumber, IsBoolean } from 'class-validator';
|
||||
|
||||
export class DeviceDto {
|
||||
@IsString()
|
||||
DeviceID: string;
|
||||
|
||||
@IsString()
|
||||
Name: string;
|
||||
|
||||
@IsString()
|
||||
DeviceType: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
CategoryID?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
Authorization?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
Order?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
Share?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user