21 lines
342 B
Rust
21 lines
342 B
Rust
|
mod gruppe_alle;
|
||
|
mod gruppe_dataloader;
|
||
|
mod gruppe_erstellen;
|
||
|
mod gruppe_update;
|
||
|
|
||
|
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 }
|
||
|
}
|
||
|
}
|