Commit graph

7 commits

Author SHA1 Message Date
Simon Goller
ed609cf06c Cargo clippy and cargo fmt 2024-05-09 15:00:50 +02:00
Simon Goller
b0000c0117 Wrap Context with Autentication enum
Context should contain information which is required to get
the information if the service call is authenticated.  Context
could be the username for example.  But services call other
services internally and for this, authentication must not be
checked.  In this case, they can now pass Authentication::Full
which always successfully authenticates.
2024-05-09 14:58:19 +02:00
Simon Goller
e3ec694876 Add checks for booking and fix database timestamps 2024-05-09 09:45:53 +02:00
Simon Goller
bc8a534353 Add id check for booking
It now checks if sales_person_id and slot_id actually exists.
2024-05-09 08:11:38 +02:00
Simon Goller
8ea16624ad Add rest service for booking 2024-05-09 07:16:38 +02:00
Simon Goller
71c1432fd1 Add booking dao implementations 2024-05-07 18:19:00 +02:00
Simon Goller
4bca60a23c Implement booking service without validity checks 2024-05-07 08:31:50 +02:00