fix: create yDoc for workspace created during createUser

This commit is contained in:
linonetwo
2023-01-12 16:17:30 +08:00
parent ac1ddba094
commit 4be968c421
7 changed files with 118 additions and 70 deletions

View File

@@ -12,6 +12,11 @@ pub struct GetDocumentParameter {
pub id: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct CreateDocumentParameter {
pub workspace_id: String,
pub workspace_name: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct GetDocumentResponse {
pub update: Vec<u8>,
}
@@ -19,6 +24,7 @@ pub struct GetDocumentResponse {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub enum IDocumentParameters {
YDocumentUpdate(YDocumentUpdate),
CreateDocumentParameter(CreateDocumentParameter),
GetDocumentParameter(GetDocumentParameter),
GetDocumentResponse(GetDocumentResponse),
}