35 lines
564 B
TypeScript
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;
|
|
}
|