2025-04-02 03:43:44 +02:00
|
|
|
use chrono::{DateTime, Utc};
|
2026-02-14 01:29:34 +01:00
|
|
|
use serde::{Deserialize, Serialize};
|
2025-04-02 03:43:44 +02:00
|
|
|
|
|
|
|
|
/// DTO for favorites item
|
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
|
|
|
pub struct FavoriteItemDto {
|
|
|
|
|
/// Unique identifier for the favorite entry
|
|
|
|
|
pub id: String,
|
2026-02-14 01:29:34 +01:00
|
|
|
|
2025-04-02 03:43:44 +02:00
|
|
|
/// User ID who owns this favorite
|
|
|
|
|
pub user_id: String,
|
2026-02-14 01:29:34 +01:00
|
|
|
|
2025-04-02 03:43:44 +02:00
|
|
|
/// ID of the favorited item (file or folder)
|
|
|
|
|
pub item_id: String,
|
2026-02-14 01:29:34 +01:00
|
|
|
|
2025-04-02 03:43:44 +02:00
|
|
|
/// Type of the item ('file' or 'folder')
|
|
|
|
|
pub item_type: String,
|
2026-02-14 01:29:34 +01:00
|
|
|
|
2025-04-02 03:43:44 +02:00
|
|
|
/// When the item was added to favorites
|
|
|
|
|
pub created_at: DateTime<Utc>,
|
2026-02-14 01:29:34 +01:00
|
|
|
}
|