adding recent feature + bug fixed

This commit is contained in:
DioCrafts
2025-04-02 05:08:30 +02:00
parent 21e2eb1ea9
commit a79c335b73
21 changed files with 1112 additions and 15 deletions
+1
View File
@@ -7,4 +7,5 @@ pub mod trash_dto;
pub mod search_dto;
pub mod share_dto;
pub mod favorites_dto;
pub mod recent_dto;
+21
View File
@@ -0,0 +1,21 @@
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
/// DTO para elementos recientes
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RecentItemDto {
/// Identificador único para el elemento reciente
pub id: String,
/// ID del usuario propietario
pub user_id: String,
/// ID del elemento (archivo o carpeta)
pub item_id: String,
/// Tipo del elemento ('file' o 'folder')
pub item_type: String,
/// Cuándo se accedió al elemento
pub accessed_at: DateTime<Utc>,
}