2024-12-29 14:47:28 +08:00

22 lines
538 B
Rust

use anyhow::Error;
use collab_entity::reminder::Reminder;
use lib_infra::async_trait::async_trait;
#[async_trait]
pub trait UserReminder: 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 UserReminder for DefaultCollabInteract {}