mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: workspace service in user crate (#4373)
* refactor: user manager * feat: implement workspace service * refactor: migrate user data when sign up * chore: fmt * chore: enable beta cloud * chore: update ci * chore: trim slash
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
pub mod cloud;
|
||||
pub mod entities;
|
||||
pub mod workspace_service;
|
||||
|
||||
pub const DEFAULT_USER_NAME: fn() -> String = || "Me".to_string();
|
||||
|
13
frontend/rust-lib/flowy-user-pub/src/workspace_service.rs
Normal file
13
frontend/rust-lib/flowy-user-pub/src/workspace_service.rs
Normal file
@ -0,0 +1,13 @@
|
||||
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<()>;
|
||||
}
|
Reference in New Issue
Block a user