mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 02:15:21 +00:00
34 lines
520 B
TypeScript
34 lines
520 B
TypeScript
import { IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class SpaceDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public uuid: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public parentUuid: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public spaceName: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public spaceTypeUuid: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public invitationCode: string;
|
|
}
|
|
|
|
export class SpaceTypeDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public uuid: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
public type: string;
|
|
}
|