AppFlowy/frontend/rust-lib/flowy-search-pub/src/cloud.rs
2024-06-13 01:37:19 +02:00

13 lines
348 B
Rust

use client_api::entity::search_dto::SearchDocumentResponseItem;
use flowy_error::FlowyError;
use lib_infra::async_trait::async_trait;
#[async_trait]
pub trait SearchCloudService: Send + Sync + 'static {
async fn document_search(
&self,
workspace_id: &str,
query: String,
) -> Result<Vec<SearchDocumentResponseItem>, FlowyError>;
}