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>
This commit is contained in:
@@ -29,7 +29,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "shared")
|
||||
from shared.db.base import Base # noqa: E402
|
||||
from shared.db.session import get_session, get_account_session, _engine # noqa: E402
|
||||
from shared.infrastructure.ghost_admin_token import make_ghost_admin_jwt # noqa: E402
|
||||
from shared.models.ghost_content import Post, Author, Tag, PostUser, PostAuthor # noqa: E402
|
||||
from blog.models.content import Post, Author, Tag, PostUser, PostAuthor # noqa: E402
|
||||
from shared.models.user import User # noqa: E402
|
||||
|
||||
logging.basicConfig(
|
||||
|
||||
Reference in New Issue
Block a user