build 1
This commit is contained in:
47
backend/src/types.ts
Normal file
47
backend/src/types.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
export interface Meme {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string | null;
|
||||
file_path: string;
|
||||
file_name: string;
|
||||
file_size: number;
|
||||
mime_type: string;
|
||||
width: number;
|
||||
height: number;
|
||||
parent_id: string | null;
|
||||
created_at: string;
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
export interface Tag {
|
||||
id: number;
|
||||
name: string;
|
||||
meme_count: number;
|
||||
}
|
||||
|
||||
export interface UploadBody {
|
||||
title?: string;
|
||||
description?: string;
|
||||
tags?: string;
|
||||
}
|
||||
|
||||
export interface UpdateBody {
|
||||
title?: string;
|
||||
description?: string;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface RescaleBody {
|
||||
width?: number;
|
||||
height?: number;
|
||||
quality?: number;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
export interface ListQuery {
|
||||
tag?: string;
|
||||
q?: string;
|
||||
page?: number;
|
||||
limit?: number;
|
||||
parent_only?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user