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