add typ
This commit is contained in:
12
src/domain/typ/service/typ_alle.rs
Normal file
12
src/domain/typ/service/typ_alle.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use anyhow::Error;
|
||||
|
||||
use crate::domain::typ::model;
|
||||
|
||||
use super::Service;
|
||||
|
||||
impl Service {
|
||||
pub async fn typ_alle(&self) -> Result<Vec<model::Typ>, Error> {
|
||||
let typ = self.repo.typ_alle(&self.db).await?;
|
||||
Ok(typ)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user