Skip to main content

pickcat_api_collection/dto/
media.rs

1//! 媒体资源 DTO。
2
3use serde::{Deserialize, Serialize};
4
5use super::user::CursorListDTO;
6
7/// `POST /api/v1/files` 成功(201)后返回的已上传文件。
8#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct UploadedFileDTO {
11    pub id: String,
12    pub ownership: String,
13    pub uploaded_by_user_id: String,
14}
15
16/// 我的文件列表;列表项结构未文档化。
17pub type FileListDTO = CursorListDTO<serde_json::Value>;