Add endpoints for working hours

It has an endpoint to show and to delete working hours
This commit is contained in:
Simon Goller 2024-06-27 14:55:05 +02:00
parent d1f6db2104
commit c9e526492c
6 changed files with 201 additions and 14 deletions

View file

@ -28,6 +28,7 @@ pub struct ExtraHoursEntity {
#[automock]
#[async_trait]
pub trait ExtraHoursDao {
async fn find_by_id(&self, id: Uuid) -> Result<Option<ExtraHoursEntity>, crate::DaoError>;
async fn find_by_sales_person_id_and_year(
&self,
sales_person_id: Uuid,