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

19 lines
304 B
Rust

mod benutzer_alle;
mod benutzer_erstellen;
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 }
}
}