- 为 documents.save/meta/content、blocks.patch 与 sidebar.dataset.list 补齐 Rust 协议映射、共享契约与桥接执行器 - 对齐 BlockNote、Mindmap、OnlyOffice 的保存/路由元信息,并补真实浏览器回归脚本与 OnlyOffice 部署基线 - 忽略 Rust 本地构建产物与 Harness 调试状态文件,避免临时产物进入仓库历史
54 lines
1.1 KiB
Rust
54 lines
1.1 KiB
Rust
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct QueryEnvelope<T> {
|
|
pub name: String,
|
|
pub payload: T,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct Pagination {
|
|
pub limit: u32,
|
|
pub cursor: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct GetPage {
|
|
pub page_id: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct GetPageMeta {
|
|
pub page_id: String,
|
|
pub workspace_id: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct GetPageContent {
|
|
pub page_id: String,
|
|
pub workspace_id: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct ListSidebarDataset {
|
|
pub workspace_id: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct ListPageBlocks {
|
|
pub page_id: String,
|
|
pub pagination: Pagination,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct SearchPages {
|
|
pub query: String,
|
|
pub workspace_id: Option<String>,
|
|
pub pagination: Pagination,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct SearchBlocks {
|
|
pub query: String,
|
|
pub page_id: Option<String>,
|
|
pub pagination: Pagination,
|
|
}
|