mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
13 lines
348 B
Rust
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>;
|
|
}
|