mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 00:52:14 +00:00

* chore: import into space * chore: par insert * fix: migrate from anon * chore: fix test * chore: update test * chore: add test * chore: update test * chore: update test * chore: update docs * fix: space collab * chore: update test
24 lines
722 B
Rust
24 lines
722 B
Rust
use collab_folder::hierarchy_builder::ParentChildViews;
|
|
use flowy_error::FlowyResult;
|
|
use flowy_folder_pub::entities::ImportFrom;
|
|
use lib_infra::async_trait::async_trait;
|
|
use std::collections::HashMap;
|
|
|
|
#[async_trait]
|
|
pub trait UserWorkspaceService: Send + Sync {
|
|
async fn import_views(
|
|
&self,
|
|
source: &ImportFrom,
|
|
views: Vec<ParentChildViews>,
|
|
orphan_views: Vec<ParentChildViews>,
|
|
parent_view_id: Option<String>,
|
|
) -> FlowyResult<()>;
|
|
async fn import_database_views(
|
|
&self,
|
|
ids_by_database_id: HashMap<String, Vec<String>>,
|
|
) -> FlowyResult<()>;
|
|
|
|
/// Removes local indexes when a workspace is left/deleted
|
|
fn did_delete_workspace(&self, workspace_id: String) -> FlowyResult<()>;
|
|
}
|