Skip to content

Commit 5e3aad9

Browse files
committed
Refactor modules
1 parent a04f031 commit 5e3aad9

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

di_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
BookEventGatewayInterface,
99
BookRepositoryInterface,
1010
)
11-
from domains.books.entities.models import BookModel
11+
from domains.books.models import BookModel
1212
from gateways.event import NullEventGateway
1313

1414

domains/books/_data_access_interfaces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
from sqlalchemy_bind_manager.repository import SortDirection
55

6-
from .entities.cloudevent_base import BaseEvent
7-
from .entities.models import BookModel
6+
from domains.books.models import BookModel
7+
from domains.cloudevent_base import BaseEvent
88

99

1010
class BookRepositoryInterface(Protocol):

domains/books/entities/__init__.py

Whitespace-only changes.

domains/books/entities/events.py renamed to domains/books/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pydantic
44
from pydantic import ConfigDict
55

6-
from domains.books.entities.cloudevent_base import (
6+
from domains.cloudevent_base import (
77
BaseEvent,
88
dataschema_field,
99
type_field,
File renamed without changes.

domains/books/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from anyio import to_thread
44
from dependency_injector.wiring import Provide, inject
55

6-
from domains.books.entities.events import BookCreatedV1, BookCreatedV1Data
6+
from domains.books.events import BookCreatedV1, BookCreatedV1Data
7+
from domains.books.models import BookModel
78

89
from ._data_access_interfaces import BookEventGatewayInterface, BookRepositoryInterface
910
from .dto import Book, BookData
10-
from .entities.models import BookModel
1111

1212

1313
class BookService:

gateways/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from structlog import get_logger
22

3-
from domains.books.entities.cloudevent_base import BaseEvent
3+
from domains.cloudevent_base import BaseEvent
44

55

66
class NullEventGateway:

gateways/storage/SQLAlchemy/default_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from sqlalchemy import Column, Integer, String, Table
22
from sqlalchemy.orm import registry
33

4-
from domains.books.entities.models import BookModel
4+
from domains.books.models import BookModel
55

66

77
def init_tables(registry_mapper: registry):

http_app/routes/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from fastapi import APIRouter, Body, Header, HTTPException
55
from pydantic import BaseModel
66

7-
from domains.books.entities.events import BookCreatedV1
7+
from domains.books.events import BookCreatedV1
88

99
router = APIRouter(prefix="/events")
1010

0 commit comments

Comments
 (0)