2026-05-31 20:24:10 +02:00
|
|
|
use anyhow::Error;
|
|
|
|
|
|
|
|
|
|
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> {
|
2026-06-03 22:08:44 +02:00
|
|
|
let typ_loeschen = entity::TypLoeschen { id: input.id };
|
2026-05-31 20:24:10 +02:00
|
|
|
|
2026-06-03 22:08:44 +02:00
|
|
|
let typ = self.repo.typ_loeschen(&self.db, &typ_loeschen).await?;
|
2026-05-31 20:24:10 +02:00
|
|
|
Ok(typ)
|
|
|
|
|
}
|
|
|
|
|
}
|