This commit is contained in:
Николай Вигдоров
2025-03-02 12:13:01 +03:00
parent 12b3d5b23c
commit 5e91f028d9
7 changed files with 200 additions and 12 deletions

View File

@ -1,7 +1,7 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ApiProperty } from '@nestjs/swagger';
import { Document } from 'mongoose';
import { Storage } from './types';
import { Storage, StorageCreate } from './types';
export class AuthRequest {
@ApiProperty()
@ -31,6 +31,12 @@ export class StorageDocument extends Document {
})
data: object;
@Prop({
type: String,
required: true,
})
storageName: string;
@Prop({
type: String,
required: true,
@ -48,6 +54,17 @@ export class StorageResponse implements Storage {
@ApiProperty()
user: string;
@ApiProperty()
storageName: string;
@ApiProperty()
id: string;
}
export class StorageCreateRequest implements StorageCreate {
@ApiProperty()
data: object;
@ApiProperty()
storageName: string;
}