feat: remove appwrite and add nextjs backend
This commit is contained in:
22
backend/src/file/dto/file.dto.ts
Normal file
22
backend/src/file/dto/file.dto.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Expose, plainToClass } from "class-transformer";
|
||||
import { ShareDTO } from "src/share/dto/share.dto";
|
||||
|
||||
export class FileDTO {
|
||||
@Expose()
|
||||
id: string;
|
||||
|
||||
@Expose()
|
||||
name: string;
|
||||
|
||||
@Expose()
|
||||
size: string;
|
||||
|
||||
@Expose()
|
||||
url: boolean;
|
||||
|
||||
share: ShareDTO;
|
||||
|
||||
constructor(partial: Partial<FileDTO>) {
|
||||
return plainToClass(FileDTO, partial, { excludeExtraneousValues: true });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user