build collections

This commit is contained in:
2026-03-28 01:34:27 -05:00
parent 2c128a404e
commit 8b502119f1
12 changed files with 704 additions and 114 deletions

View File

@@ -9,10 +9,19 @@ export interface Meme {
width: number;
height: number;
parent_id: string | null;
collection_id: number | null;
created_at: string;
tags: string[];
}
export interface Collection {
id: number;
name: string;
is_default: number;
created_at: string;
meme_count: number;
}
export interface Tag {
id: number;
name: string;
@@ -23,6 +32,7 @@ export interface UploadBody {
title?: string;
description?: string;
tags?: string;
collection_id?: string;
}
export interface UpdateBody {
@@ -31,6 +41,10 @@ export interface UpdateBody {
tags?: string[];
}
export interface MoveBody {
collection_id: number;
}
export interface RescaleBody {
width?: number;
height?: number;
@@ -44,4 +58,5 @@ export interface ListQuery {
page?: number;
limit?: number;
parent_only?: string;
collection_id?: string;
}