use std::sync::Arc;
use async_trait::async_trait;
use neo4rs::Graph;
pub struct DBClient {
pub graph_client: String,
}
pub struct ModelParams {
pub model_name: &'static str,
pub model_alias: &'static str,
}
#[async_trait]
pub trait Controller {
async fn find_by_id(&self, model_config: ModelParams, id: &'static str) -> &'static str;
}
#[async_trait]
pub trait GraphController {
async fn find_by_id(
&self,
graph: Arc<Graph>,
model_config: ModelParams,
id: &'static str,
) -> &'static str;
}