This commit is contained in:
2026-05-16 17:57:54 +02:00
parent 1a2ec26f27
commit b2cefb7d66
55 changed files with 1654 additions and 334 deletions
+4
View File
@@ -17,6 +17,10 @@ impl GroupRepository {
.await?)
}
pub async fn get_all(&self) -> AnyResult<Vec<group::Model>> {
Ok(group::Entity::find().all(&self.context.db).await?)
}
pub async fn get_by_id(&self, id: Uuid) -> AnyResult<Option<group::Model>> {
Ok(group::Entity::find_by_id(id).one(&self.context.db).await?)
}