Add REST endpoint to find bookings per week
This commit is contained in:
parent
47a3de3c54
commit
e1f9936b62
6 changed files with 110 additions and 0 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue