2026-06-08 21:40:23 +02:00
|
|
|
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 }
|
|
|
|
|
}
|
|
|
|
|
}
|