use crate::core::virtual_keys::VirtualKey;
use crate::utils::error::gateway_error::{GatewayError, Result};
use super::types::SeaOrmDatabase;
impl SeaOrmDatabase {
pub async fn store_virtual_key(&self, _key: &VirtualKey) -> Result<()> {
Err(GatewayError::not_implemented(
"virtual_keys: store_virtual_key not yet implemented",
))
}
pub async fn get_virtual_key(&self, _key_hash: &str) -> Result<Option<VirtualKey>> {
Err(GatewayError::not_implemented(
"virtual_keys: get_virtual_key not yet implemented",
))
}
pub async fn update_virtual_key_usage(&self, _key: &VirtualKey) -> Result<()> {
Err(GatewayError::not_implemented(
"virtual_keys: update_virtual_key_usage not yet implemented",
))
}
pub async fn update_key_spend(&self, _key_id: &str, _cost: f64) -> Result<()> {
Err(GatewayError::not_implemented(
"virtual_keys: update_key_spend not yet implemented",
))
}
pub async fn list_user_keys(&self, _user_id: &str) -> Result<Vec<VirtualKey>> {
Err(GatewayError::not_implemented(
"virtual_keys: list_user_keys not yet implemented",
))
}
pub async fn get_virtual_key_by_id(&self, _key_id: &str) -> Result<Option<VirtualKey>> {
Err(GatewayError::not_implemented(
"virtual_keys: get_virtual_key_by_id not yet implemented",
))
}
pub async fn update_virtual_key(&self, _key: &VirtualKey) -> Result<()> {
Err(GatewayError::not_implemented(
"virtual_keys: update_virtual_key not yet implemented",
))
}
pub async fn delete_virtual_key(&self, _key_id: &str) -> Result<()> {
Err(GatewayError::not_implemented(
"virtual_keys: delete_virtual_key not yet implemented",
))
}
pub async fn get_keys_with_expired_budgets(&self) -> Result<Vec<VirtualKey>> {
Err(GatewayError::not_implemented(
"virtual_keys: get_keys_with_expired_budgets not yet implemented",
))
}
}