feat: add support for renaming and updating the icon for workspaces (#4806)

This commit is contained in:
Zack
2024-03-04 16:05:16 +08:00
committed by GitHub
parent f8962edfd7
commit 2af93a9bcb
14 changed files with 283 additions and 37 deletions

View File

@ -171,6 +171,14 @@ pub trait UserCloudService: Send + Sync + 'static {
/// Returns the new workspace if successful
fn create_workspace(&self, workspace_name: &str) -> FutureResult<UserWorkspace, FlowyError>;
// Updates the workspace name and icon
fn patch_workspace(
&self,
workspace_id: &str,
new_workspace_name: Option<&str>,
new_workspace_icon: Option<&str>,
) -> FutureResult<(), FlowyError>;
/// Deletes a workspace owned by the user.
fn delete_workspace(&self, workspace_id: &str) -> FutureResult<(), FlowyError>;