22 lines
538 B
Rust
Raw Normal View History

2023-10-02 09:12:24 +02:00
use anyhow::Error;
use collab_entity::reminder::Reminder;
use lib_infra::async_trait::async_trait;
2023-10-02 09:12:24 +02:00
#[async_trait]
2024-12-29 14:47:28 +08:00
pub trait UserReminder: Send + Sync + 'static {
async fn add_reminder(&self, _reminder: Reminder) -> Result<(), Error> {
Ok(())
2023-10-02 09:12:24 +02:00
}
async fn remove_reminder(&self, _reminder_id: &str) -> Result<(), Error> {
Ok(())
2023-10-02 09:12:24 +02:00
}
async fn update_reminder(&self, _reminder: Reminder) -> Result<(), Error> {
Ok(())
2023-10-02 09:12:24 +02:00
}
}
pub struct DefaultCollabInteract;
#[async_trait]
2024-12-29 14:47:28 +08:00
impl UserReminder for DefaultCollabInteract {}