Files
simple-storage/src/schemas.ts
2026-02-08 20:06:17 +03:00

35 lines
564 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { Storage, StorageCreate } from './types';
export class AuthRequest {
@ApiProperty()
login: string;
}
export class StorageResponse implements Storage {
@ApiProperty()
data: object;
@ApiProperty()
user: string;
@ApiProperty()
storageName: string;
@ApiProperty()
id: string;
}
export class StorageCreateRequest implements StorageCreate {
@ApiProperty()
data: object;
@ApiProperty()
storageName: string;
}
export class StorageUpdateRequest {
@ApiProperty()
data: object;
}