Feat: Gallery List Page

相册页面,包括页尾组件
This commit is contained in:
2023-11-11 22:44:52 +08:00
parent f64113a756
commit 073acf62d6
8 changed files with 146 additions and 0 deletions
+4
View File
@@ -4,4 +4,8 @@ declare namespace API {
msg: string;
data: D;
}
interface PageResponse<D> extends Response<D> {
count: number;
}
}
+12
View File
@@ -0,0 +1,12 @@
declare namespace API {
namespace Gallery {
export interface ICateData {
id: number
name: string
slug: string
url: string
description: string
hidden: boolean
}
}
}
+37
View File
@@ -0,0 +1,37 @@
declare namespace API {
namespace Media {
// 数据库本来的数据
export interface IMediaBaseData {
title: string
origin_name: string
content: string
cate: number
key: string
hidden: boolean
hidden_ref: boolean
is_sensitive: boolean
take_time: string
modified: number | string // 文件修改时间
photo?: File
}
// 后端加的数据
export interface IMediaExtraData extends IMediaBaseData {
file_name: string
type: string
meta: unknown
path: string
likes: number
created_at: string
updated_at: string
url: string
thumb_url: string
}
export interface IMediaData extends IMediaExtraData {
id: number
}
}
}