final
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user