diff --git a/ee/tabby-schema/src/schema/notification.rs b/ee/tabby-schema/src/schema/notification.rs index 5e825ea7dac6..86f6ce30174a 100644 --- a/ee/tabby-schema/src/schema/notification.rs +++ b/ee/tabby-schema/src/schema/notification.rs @@ -21,9 +21,12 @@ pub struct Notification { #[async_trait] pub trait NotificationService: Send + Sync { + /// Create notification async fn create(&self, recipient: NotificationRecipient, content: &str) -> Result; + /// List notifications async fn list(&self, user_id: &ID) -> Result>; + /// Mark notification as read for user async fn mark_read(&self, user_id: &ID, id: Option<&ID>) -> Result<()>; }