Add REST endpoint to find bookings per week

This commit is contained in:
Simon Goller 2024-06-12 07:38:51 +02:00
parent 47a3de3c54
commit e1f9936b62
6 changed files with 110 additions and 0 deletions

View file

@ -31,6 +31,11 @@ pub trait BookingDao {
calendar_week: i32,
year: u32,
) -> Result<Option<BookingEntity>, DaoError>;
async fn find_by_week(
&self,
calendar_week: i32,
year: u32,
) -> Result<Arc<[BookingEntity]>, DaoError>;
async fn create(&self, entity: &BookingEntity, process: &str) -> Result<(), DaoError>;
async fn update(&self, entity: &BookingEntity, process: &str) -> Result<(), DaoError>;
}