adding recent feature + bug fixed
This commit is contained in:
@@ -7,4 +7,5 @@ pub mod trash_dto;
|
||||
pub mod search_dto;
|
||||
pub mod share_dto;
|
||||
pub mod favorites_dto;
|
||||
pub mod recent_dto;
|
||||
|
||||
|
||||
@@ -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>,
|
||||
}
|
||||
Reference in New Issue
Block a user