ConversationController
| Base path | /api/conversations |
| Module | Platform Misc |
| Endpoints | 5 |
| OpenAPI tag | Conversations |
| Source | backend/src/main/java/com/motorph/payroll/controller/ConversationController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/conversations/me | employee.messages.view | listMine() |
GET | /api/conversations/{id} | employee.messages.view | getById() |
GET | /api/conversations/{id}/messages | employee.messages.view | listMessages() |
GET | /api/conversations/{id}/messages/cursor | employee.messages.view | listMessagesCursor() |
POST | /api/conversations/messages | employee.messages.view | sendMessage() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: ConversationService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| ChatMessage | messages | Yes |
| Conversation | conversation | Yes |
| Employee | employee | Yes |
| Notification | notifications | Yes |
| User | users | — |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.