Feat: Gallery List Page
相册页面,包括页尾组件
This commit is contained in:
Vendored
+4
@@ -4,4 +4,8 @@ declare namespace API {
|
||||
msg: string;
|
||||
data: D;
|
||||
}
|
||||
|
||||
interface PageResponse<D> extends Response<D> {
|
||||
count: number;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
declare namespace API {
|
||||
namespace Gallery {
|
||||
export interface ICateData {
|
||||
id: number
|
||||
name: string
|
||||
slug: string
|
||||
url: string
|
||||
description: string
|
||||
hidden: boolean
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+37
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user