CrmDealController
| Base path | /api/crm/deals |
| Module | CRM |
| Endpoints | 11 |
| OpenAPI tag | CRM Deals |
| Source | backend/src/main/java/com/motorph/payroll/controller/CrmDealController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/crm/deals | crm.view | list() |
GET | /api/crm/deals/pipeline | crm.view | getPipeline() |
GET | /api/crm/deals/analytics | crm.reports.view | getAnalytics() |
GET | /api/crm/deals/{id} | crm.view | getById() |
GET | /api/crm/deals/{id}/activities | crm.view | getDealActivities() |
GET | /api/crm/deals/{id}/notes | crm.view | getDealNotes() |
POST | /api/crm/deals | crm.deals.manage | create() |
PUT | /api/crm/deals/{id} | crm.deals.manage | update() |
PATCH | /api/crm/deals/{id}/stage | crm.deals.manage | updateStage() |
POST | /api/crm/deals/{id}/notes | crm.activities.manage | addNote() |
DELETE | /api/crm/deals/{id} | crm.deals.manage | delete() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: CrmDealService, CrmNoteService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| CrmActivity | crm_activity | Yes |
| CrmContact | crm_contact | Yes |
| CrmDeal | crm_deal | Yes |
| CrmLead | crm_lead | Yes |
| CrmNote | crm_note | Yes |
| CrmOrganization | crm_organization | Yes |
| CrmPicklistItem | crm_picklist_item | Yes |
| CrmSettings | crm_settings | Yes |
| CrmSettingsChange | crm_settings_changes | Yes |
| Employee | employee | Yes |
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/.