## 预览
https://photo.moejue.cn






## 特性
## Todo
## 安装说明
克隆仓库到本地:
bash</s><i> </i> git clone https://github.com/iAJue/PhotoGallery.git<i> </i><e> 进入项目目录:
```bash
cd PhotoGallery
```安装依赖:
```bash
npm install
```打包项目
```bash
npm run build
```## 后端接口
仅供参考
https://github.com/iAJue/wasteCode/tree/main/photo
## 返回数据格式
照片接口
json</s><i> </i>[ { "date": "\u6628\u5929", "items": [ { "src": "https:\/\/moejuevideo.pages.dev\/file\/1730957555106_ocgRCdDEA07fAILEKEFOA8ADAyETABBMffIBE6~tplv-dy-aweme-images_q75.webp", "alt": "ocgRCdDEA07fAILEKEFOA8ADAyETABBMffIBE6~tplv-dy-aweme-images_q75.webp", "isVideo": false, "duration": null } ] } ]<i> </i><e>相册接口
```json
[
{
"folder_id": "3",
"folder_name": "images",
"created_at": "2024-11-07 15:09:06",
"photo_count": "61",
"latest_image": "https:\/\/moejuevideo.pages.dev\/file\/1730963758087_GZIaBGlbAAALz_E.jpeg",
"attribute": "2",
"ispassword": true
}
]
```随机接口
```json
[
{
"id": 1,
"folder_id": 1,
"name": "\u300c\u4e0d\u706d\u300d #2024\u539f\u795e\u751f\u65e5\u4f1a #\u539f\u795e #\u949f\u79bb_7415149072572501275.mp4",
"size": 50437932,
"duration": "19.0",
"type": 1,
"data": "https:\/\/moejuevideo.pages.dev\/file\/1730944134269_\u300c\u4e0d\u706d\u300d %232024\u539f\u795e\u751f\u65e5\u4f1a %23\u539f\u795e %23\u949f\u79bb_7415149072572501275.mp4_part_1.mp4",
"created_at": "2024-11-07 09:49:48"
}
]
```