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

21 lines
553 B
Rust
Raw Normal View History

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