Files
mono/shared/contracts/__init__.py
giles 382d1b7c7a Decouple blog models and BlogService from shared layer
Move Post/Author/Tag/PostAuthor/PostTag/PostUser models from
shared/models/ghost_content.py to blog/models/content.py so blog-domain
models no longer live in the shared layer. Replace the shared
SqlBlogService + BlogService protocol with a blog-local singleton
(blog_service), and switch entry_associations.py from direct DB access
to HTTP fetch_data("blog", "post-by-id") to respect the inter-service
boundary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 13:28:11 +00:00

30 lines
527 B
Python

"""Typed contracts (DTOs + Protocols) for cross-domain service interfaces."""
from .dtos import (
PostDTO,
CalendarDTO,
CalendarEntryDTO,
MarketPlaceDTO,
ProductDTO,
CartItemDTO,
CartSummaryDTO,
)
from .protocols import (
CalendarService,
MarketService,
CartService,
)
__all__ = [
"PostDTO",
"CalendarDTO",
"CalendarEntryDTO",
"MarketPlaceDTO",
"ProductDTO",
"CartItemDTO",
"CartSummaryDTO",
"CalendarService",
"MarketService",
"CartService",
]