mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 10:03:18 +00:00 
			
		
		
		
	 bd7977d8ba
			
		
	
	
		bd7977d8ba
		
			
		
	
	
	
	
		
			
			* 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
		
			
				
	
	
		
			17 lines
		
	
	
		
			571 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 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<()>;
 | |
| }
 |