20 lines
400 B
TypeScript
20 lines
400 B
TypeScript
export interface GetMediaResult {
|
|
success: boolean;
|
|
media?: {
|
|
id: string;
|
|
filename: string;
|
|
originalName: string;
|
|
mimeType: string;
|
|
size: number;
|
|
url: string;
|
|
type: string;
|
|
uploadedBy: string;
|
|
uploadedAt: Date;
|
|
metadata?: Record<string, any>;
|
|
};
|
|
errorMessage?: string;
|
|
}
|
|
|
|
export interface IGetMediaPresenter {
|
|
present(result: GetMediaResult): void;
|
|
} |