mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-01 21:37:38 +00:00

* feat: workspace api * feat: added cloud apis for add and delete workspace * feat: add and delete workspace event handlers * chore: rust fmt * chore: save user workspace * test: add test * test: add test * chore: add to gitignore * feat: update api add name to workspace * chore: cargo clippy and rename to create * chore: add envrc and direnv to gitignore * chore: change name to create workspace instead of add workspace * chore: update client api rev * feat: add create workspace impl * chore: restore gitignore to original * test: fix create workspace event test * fix: change delete workspace input * fix: compile * fix: create workspace test * feat: add error code for request payload too large * chore: remove cargo backup files * feat: add is async option for upload file handler * chore: update client api version --------- Co-authored-by: nathan <nathan@appflowy.io>
37 lines
1.0 KiB
Rust
37 lines
1.0 KiB
Rust
use anyhow::Error;
|
|
use collab::core::collab::CollabDocState;
|
|
use collab_entity::CollabType;
|
|
|
|
use flowy_database_pub::cloud::{CollabDocStateByOid, DatabaseCloudService, DatabaseSnapshot};
|
|
use lib_infra::future::FutureResult;
|
|
|
|
pub(crate) struct LocalServerDatabaseCloudServiceImpl();
|
|
|
|
impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl {
|
|
fn get_database_object_doc_state(
|
|
&self,
|
|
_object_id: &str,
|
|
_collab_type: CollabType,
|
|
_workspace_id: &str,
|
|
) -> FutureResult<CollabDocState, Error> {
|
|
FutureResult::new(async move { Ok(vec![]) })
|
|
}
|
|
|
|
fn batch_get_database_object_doc_state(
|
|
&self,
|
|
_object_ids: Vec<String>,
|
|
_object_ty: CollabType,
|
|
_workspace_id: &str,
|
|
) -> FutureResult<CollabDocStateByOid, Error> {
|
|
FutureResult::new(async move { Ok(CollabDocStateByOid::default()) })
|
|
}
|
|
|
|
fn get_database_collab_object_snapshots(
|
|
&self,
|
|
_object_id: &str,
|
|
_limit: usize,
|
|
) -> FutureResult<Vec<DatabaseSnapshot>, Error> {
|
|
FutureResult::new(async move { Ok(vec![]) })
|
|
}
|
|
}
|