This commit is contained in:
2026-05-31 20:24:10 +02:00
parent 49cd648d5b
commit a1e8d34210
27 changed files with 426 additions and 23 deletions

View File

@@ -0,0 +1,22 @@
use anyhow::Error;
use chrono::Utc;
use super::Service;
use crate::domain::typ::{
entity,
model::{self, TypLoeschenInput},
};
impl Service {
pub async fn typ_loeschen(&self, input: TypLoeschenInput) -> Result<model::Typ, Error> {
let typ_input = entity::Typ {
id: input.id,
typname: String::new(),
erstellt_am: None,
geaendert_am: Some(Utc::now()),
};
let typ = self.repo.typ_loeschen(&self.db, &typ_input).await?;
Ok(typ)
}
}