BR 1.1 → Store Service

Репозиторий: erp-store-service Контракты: API (internal endpoints)

Только internal-эндпоинты

Store Service пока не имеет public API. В рамках BR 1.1 добавляются только internal-эндпоинты для интеграции с User Service.

Задачи

Инфраструктура

  • Инициализация проекта: Maven, Spring Boot 3, PostgreSQL, Liquibase
  • Liquibase миграция: таблица stores (минимальная — id, name, legal_entity_id, status, is_published, franchise_id)
  • Entity Store (JPA)
  • Repository StoreRepository

Эндпоинты

  • POST /internal/stores/count-by-legal-entities — принять массив LE IDs, вернуть {le_id: count}
  • GET /internal/stores?legal_entity_id={id} — список ТТ по ЮЛ (id, name, status, is_published)
  • POST /internal/stores/unpublish-by-legal-entity — снять с публикации все ТТ по LE ID (is_published = false)

Тестирование и запуск

  • Docker: Dockerfile + docker-compose.yml