CMS Service
NestJS:8003Core
The CMS (Content Management System) Service manages correspondence documents, tasks, attachments, and content archival. It provides document workflow management with fine-grained access control and change tracking.
Key Features
- Document Workflow — Full correspondence lifecycle management
- Attachment Management — Upload, version, and manage document attachments
- Access Control — Fine-grained permission-based content access
- Change Tracking — Uses deep-diff for detailed change history
- Redis Caching — Cached entity lookups for performance
- Archive — Long-term content archival and retrieval
API Endpoints
GET
/api/cms/correspondenceList correspondence documents with filters
POST
/api/cms/correspondenceCreate new correspondence
GET
/api/cms/correspondence/:idGet correspondence details
PUT
/api/cms/correspondence/:idUpdate correspondence
GET
/api/cms/tasksList tasks for the current user
POST
/api/cms/attachmentsUpload attachment
GET
/api/cms/attachments/:idDownload attachment
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| PORT | number | 8003 | Service listening port |
| DB_HOST | string | localhost | MSSQL server host |
| DB_USERNAME | string | - | Database username |
| DB_PASSWORD | string | - | Database password |
| RABBITMQ_URIS | string | - | RabbitMQ connection URIs |
| REDIS_HOST | string | localhost | Redis host |
RabbitMQ Integration
Consumes from:
structure_entities_eventsexchange — Organizational changes affecting contentsearch-eventsexchange — Search indexing triggers
Publishes to:
- Notification events for content changes
Dependencies
- Admin Service — Permission verification
- Media Service — Attachment storage, watermarks
- BI Service — Report generation
- Tenant Service — Tenant context resolution