Export requestJSON and requestRAW to core, formatting and adapting code and removing yandere code for update.
This commit is contained in:
46
src/plugins/yandere/api/post.ts
Normal file
46
src/plugins/yandere/api/post.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
type PostResponse = {
|
||||
posts: {
|
||||
id: number;
|
||||
tags: string;
|
||||
created_at: string;
|
||||
creator_id: number;
|
||||
approver_id: number;
|
||||
author: string;
|
||||
change: number;
|
||||
source: string;
|
||||
score: number;
|
||||
md5: string;
|
||||
file_size: number;
|
||||
file_ext: string;
|
||||
file_url: string;
|
||||
is_shown_in_index: boolean;
|
||||
preview_url: string;
|
||||
preview_width: number;
|
||||
preview_height: number;
|
||||
actual_preview_width: number;
|
||||
actual_preview_height: number;
|
||||
sample_url: string;
|
||||
sample_width: number;
|
||||
sample_height: number;
|
||||
sample_file_size: number;
|
||||
jpeg_url: string;
|
||||
jpeg_width: number;
|
||||
jpeg_height: number;
|
||||
rating: string;
|
||||
is_rating_locked: boolean;
|
||||
has_children: boolean;
|
||||
parent_id: number;
|
||||
status: string;
|
||||
is_pending: boolean;
|
||||
width: number;
|
||||
height: number;
|
||||
is_held: boolean;
|
||||
frames_pending_string: string;
|
||||
frames_pending: [];
|
||||
frames_string: string;
|
||||
frames: [];
|
||||
is_note_locked: boolean;
|
||||
last_noted_at: string;
|
||||
last_commented_at: string;
|
||||
}[];
|
||||
};
|
||||
Reference in New Issue
Block a user