pub async fn delete_role_notification(pool: &Pool<MySql>, id: i64) -> Result<()>
Expand description
Deletes a role notification.
This function permanently removes a role notification record with the specified ID.
§Arguments
pool
- Database connection pool for executing the queryid
- Unique identifier of the notification to delete
§Returns
Ok(())
- Successfully deleted the notificationErr(anyhow::Error)
- Failed to delete the notification