adding user authentication

This commit is contained in:
DioCrafts
2025-03-20 09:22:31 +01:00
parent 961545aef7
commit cafad0fbfd
69 changed files with 6483 additions and 106 deletions
+21
View File
@@ -80,4 +80,25 @@ impl From<FolderDto> for Folder {
dto.modified_at
)
}
}
impl FolderDto {
/// Creates an empty folder DTO for stub implementations
pub fn empty() -> Self {
Self {
id: "stub-id".to_string(),
name: "stub-folder".to_string(),
path: "/stub/path".to_string(),
parent_id: None,
created_at: 0,
modified_at: 0,
is_root: true,
}
}
}
impl Default for FolderDto {
fn default() -> Self {
Self::empty()
}
}