Open Flanderzz opened 6 months ago
Add a feature for users to invite friends to chat
Data Example:
{ "inviter": { "name": "John Doe", "email": "john.doe@example.com", }, "invite_id": "123456789", "invite_link": "https://example.com/invite/123456789", "created_date": "2024-01-15" "status": "OPEN", "recipients": [ { "email": "recipient1@example.com", "status_progress": "SENT", "date_sent": "2024-01-15", "exp_date": "2024-01-22" }, { "email": "recipient2@example.com", "status_progress": "ACCEPTED", "date_sent": "2024-01-15", "exp_date": "2024-01-22" }, { "email": "recipient3@example.com", "status_progress": "DONE", "date_sent": "2024-01-15", "exp_date": "2024-01-22" }, { "email": "recipient4@example.com", "status_progress": "EXPIRED", "date_sent": "2024-01-15", "exp_date": "2024-01-22" } ] }
Currently here is how flow looks:
DB/Model layer:
Repository Layer:
Service Layer:
Controller Layer: GET /invite/{id}
POST /invite/{id}
Current issues:
Add a feature for users to invite friends to chat
Expectation:
Invite Flow: invite -> create -> communicate -> reminder -> accept | expire
Initiation:
Creation:
Communication:
Reminder:
Acceptance:
Expiration:
Data Example: