mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
* fix: search workspace sync indexing * chore: update collab rev temporarily * feat: revert comparison and implement index check * chore: fixes after merg * feat: clean code + support delete workspace * fix: improve code * fix: improvements after merge * fix: cargo fmt * fix: remove indices for workspace method * fix: clippy errors * fix: clippy too many arguments
16 lines
571 B
Rust
16 lines
571 B
Rust
use flowy_error::FlowyResult;
|
|
use flowy_folder_pub::folder_builder::ParentChildViews;
|
|
use lib_infra::async_trait::async_trait;
|
|
use std::collections::HashMap;
|
|
|
|
#[async_trait]
|
|
pub trait UserWorkspaceService: Send + Sync {
|
|
async fn did_import_views(&self, views: Vec<ParentChildViews>) -> FlowyResult<()>;
|
|
async fn did_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<()>;
|
|
}
|