mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-17 16:40:31 +00:00
0a1d177fc4
- 🏷️ 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.
16 lines
382 B
PHP
16 lines
382 B
PHP
<?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';
|
|
}
|