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/correspondence

List correspondence documents with filters

POST
/api/cms/correspondence

Create new correspondence

GET
/api/cms/correspondence/:id

Get correspondence details

PUT
/api/cms/correspondence/:id

Update correspondence

GET
/api/cms/tasks

List tasks for the current user

POST
/api/cms/attachments

Upload attachment

GET
/api/cms/attachments/:id

Download attachment

Configuration

NameTypeDefaultDescription
PORTnumber8003Service listening port
DB_HOSTstringlocalhostMSSQL server host
DB_USERNAMEstring-Database username
DB_PASSWORDstring-Database password
RABBITMQ_URISstring-RabbitMQ connection URIs
REDIS_HOSTstringlocalhostRedis host

RabbitMQ Integration

Consumes from:

  • structure_entities_events exchange — Organizational changes affecting content
  • search-events exchange — 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