2026-04-14 13:22:29 +08:00
|
|
|
#[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,
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-15 03:06:29 +08:00
|
|
|
#[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,
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-14 13:22:29 +08:00
|
|
|
#[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,
|
|
|
|
|
}
|