feat: 完成 rust cutover phase 8 收口
This commit is contained in:
@@ -44,6 +44,44 @@ pub struct UpdatePageTitle {
|
||||
pub title: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct CreateDocumentPage {
|
||||
pub page_id: String,
|
||||
pub parent_page_id: Option<String>,
|
||||
pub title: String,
|
||||
pub workspace_seed_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct MoveDocumentPage {
|
||||
pub page_id: String,
|
||||
pub parent_page_id: Option<String>,
|
||||
pub sort_order: i64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct DeleteDocumentPage {
|
||||
pub page_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct RestoreDocumentPage {
|
||||
pub page_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct DuplicateDocumentPage {
|
||||
pub source_page_id: String,
|
||||
pub new_page_id: String,
|
||||
pub title: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct CopyTreeDocumentPages {
|
||||
pub items_json: String,
|
||||
pub target_parent_page_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct UpdatePageStats {
|
||||
pub page_id: String,
|
||||
@@ -87,6 +125,16 @@ pub struct SavePageContent {
|
||||
pub conflict_detection_key: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct PatchBlock {
|
||||
pub page_id: String,
|
||||
pub block_id: String,
|
||||
pub workspace_id: Option<String>,
|
||||
pub revision: Option<u64>,
|
||||
pub block_snapshot_json: String,
|
||||
pub conflict_detection_key: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct PatchPageBlock {
|
||||
pub page_id: String,
|
||||
@@ -97,6 +145,14 @@ pub struct PatchPageBlock {
|
||||
pub conflict_detection_key: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct PutMindmap {
|
||||
pub document_id: String,
|
||||
pub mindmap_id: String,
|
||||
pub data_json: String,
|
||||
pub create_only: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct InsertBlock {
|
||||
pub page_id: String,
|
||||
@@ -120,6 +176,14 @@ pub struct MoveBlock {
|
||||
pub prev_block_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct EmbedBlock {
|
||||
pub source_document_id: String,
|
||||
pub source_block_id: String,
|
||||
pub target_document_id: String,
|
||||
pub target_block_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct DeleteBlock {
|
||||
pub block_id: String,
|
||||
|
||||
Reference in New Issue
Block a user