Files
Oxicloud/src/application/dtos/recent_dto.rs
T

22 lines
481 B
Rust
Raw Normal View History

2025-04-02 05:08:30 +02:00
use chrono::{DateTime, Utc};
2026-02-14 01:29:34 +01:00
use serde::{Deserialize, Serialize};
2025-04-02 05:08:30 +02:00
/// DTO for recent items
2025-04-02 05:08:30 +02:00
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RecentItemDto {
/// Unique identifier for the recent item
2025-04-02 05:08:30 +02:00
pub id: String,
2026-02-14 01:29:34 +01:00
/// Owner user ID
2025-04-02 05:08:30 +02:00
pub user_id: String,
2026-02-14 01:29:34 +01:00
/// Item ID (file or folder)
2025-04-02 05:08:30 +02:00
pub item_id: String,
2026-02-14 01:29:34 +01:00
/// Item type ('file' or 'folder')
2025-04-02 05:08:30 +02:00
pub item_type: String,
2026-02-14 01:29:34 +01:00
/// When the item was accessed
2025-04-02 05:08:30 +02:00
pub accessed_at: DateTime<Utc>,
2026-02-14 01:29:34 +01:00
}