mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-17 16:40:31 +00:00
✨ Add RSVP functionality for Meetup Events
- 🏷️ Introduce `RsvpStatus` enum for managing attendance states (`attending`, `maybe`, `none`). - ✏️ Add `MeetupEventController` methods for RSVP actions (`rsvpStatus`, `rsvp`) and payload handling. - ✨ Implement RSVP helpers in `MeetupEvent` model for user-specific attendance management. - 🌐 Register RSVP routes for showing and updating attendance in the API. - 🧪 Add feature tests for RSVP actions, covering validation, idempotency, and correct list handling.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
/**
|
||||
* RSVP-Status eines Nutzers für einen Meetup-Termin. `None` bildet den Zustand
|
||||
* ab, dass der Nutzer in keiner der beiden Teilnehmer-Listen steht (= abgesagt
|
||||
* bzw. nie zugesagt) und dient zugleich als Eingabewert zum Austragen.
|
||||
*/
|
||||
enum RsvpStatus: string
|
||||
{
|
||||
case Attending = 'attending';
|
||||
case Maybe = 'maybe';
|
||||
case None = 'none';
|
||||
}
|
||||
Reference in New Issue
Block a user