mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
22 lines
542 B
Rust
22 lines
542 B
Rust
use anyhow::Error;
|
|
use collab_entity::reminder::Reminder;
|
|
use lib_infra::async_trait::async_trait;
|
|
|
|
#[async_trait]
|
|
pub trait CollabInteract: Send + Sync + 'static {
|
|
async fn add_reminder(&self, _reminder: Reminder) -> Result<(), Error> {
|
|
Ok(())
|
|
}
|
|
async fn remove_reminder(&self, _reminder_id: &str) -> Result<(), Error> {
|
|
Ok(())
|
|
}
|
|
async fn update_reminder(&self, _reminder: Reminder) -> Result<(), Error> {
|
|
Ok(())
|
|
}
|
|
}
|
|
|
|
pub struct DefaultCollabInteract;
|
|
|
|
#[async_trait]
|
|
impl CollabInteract for DefaultCollabInteract {}
|