Files
axum-async-graphql/src/domain/benutzer/service.rs

19 lines
304 B
Rust
Raw Normal View History

mod benutzer_alle;
mod benutzer_erstellen;
2024-12-06 14:06:27 +01:00
use super::repository::Repository;
use crate::database::DB;
#[derive(Debug)]
pub struct Service {
repo: Repository,
pub db: DB,
}
impl Service {
pub fn new(db: DB) -> Self {
let repo = Repository::new();
Self { repo, db }
}
}