Add endpoint to copy shift plan week

This commit is contained in:
Simon Goller 2024-06-14 09:53:57 +02:00
parent e7af89f1cd
commit f894bf325d
4 changed files with 102 additions and 2 deletions

View file

@ -75,6 +75,14 @@ pub trait BookingService {
booking: &Booking,
context: Authentication<Self::Context>,
) -> Result<Booking, ServiceError>;
async fn copy_week(
&self,
from_calendar_week: u8,
from_year: u32,
to_calendar_week: u8,
to_year: u32,
context: Authentication<Self::Context>,
) -> Result<(), ServiceError>;
async fn delete(
&self,
id: Uuid,