From 0ab30ca47ca858580f258a4e9e891df871d6814b Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Fri, 20 Dec 2024 19:17:04 +0300 Subject: [PATCH] add base dtos --- src/domain/auth/artists/dtos.py | 13 +++++++++++++ src/domain/auth/producers/dtos.py | 13 +++++++++++++ src/domain/auth/users/dtos.py | 13 +++++++++++++ src/domain/music/albums/dtos.py | 13 +++++++++++++ src/domain/music/beatpacks/dtos.py | 13 +++++++++++++ src/domain/music/beats/dtos.py | 13 +++++++++++++ src/domain/music/soundkits/dtos.py | 13 +++++++++++++ src/domain/music/squads/dtos.py | 13 +++++++++++++ src/domain/music/tracks/dtos.py | 13 +++++++++++++ src/domain/social/chats/dtos.py | 13 +++++++++++++ src/domain/social/comments/dtos.py | 13 +++++++++++++ src/domain/social/licenses/dtos.py | 13 +++++++++++++ src/domain/social/messages/dtos.py | 13 +++++++++++++ src/domain/social/notifications/dtos.py | 13 +++++++++++++ src/domain/social/playlists/dtos.py | 13 +++++++++++++ src/domain/social/tags/dtos.py | 13 +++++++++++++ 16 files changed, 208 insertions(+) create mode 100644 src/domain/auth/artists/dtos.py create mode 100644 src/domain/auth/producers/dtos.py create mode 100644 src/domain/auth/users/dtos.py create mode 100644 src/domain/music/beatpacks/dtos.py create mode 100644 src/domain/music/beats/dtos.py create mode 100644 src/domain/music/soundkits/dtos.py create mode 100644 src/domain/music/squads/dtos.py create mode 100644 src/domain/music/tracks/dtos.py create mode 100644 src/domain/social/chats/dtos.py create mode 100644 src/domain/social/comments/dtos.py create mode 100644 src/domain/social/licenses/dtos.py create mode 100644 src/domain/social/messages/dtos.py create mode 100644 src/domain/social/notifications/dtos.py create mode 100644 src/domain/social/playlists/dtos.py create mode 100644 src/domain/social/tags/dtos.py diff --git a/src/domain/auth/artists/dtos.py b/src/domain/auth/artists/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/auth/artists/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/auth/producers/dtos.py b/src/domain/auth/producers/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/auth/producers/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/auth/users/dtos.py b/src/domain/auth/users/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/auth/users/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/music/albums/dtos.py b/src/domain/music/albums/dtos.py index e69de29..473e80d 100644 --- a/src/domain/music/albums/dtos.py +++ b/src/domain/music/albums/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/music/beatpacks/dtos.py b/src/domain/music/beatpacks/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/music/beatpacks/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/music/beats/dtos.py b/src/domain/music/beats/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/music/beats/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/music/soundkits/dtos.py b/src/domain/music/soundkits/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/music/soundkits/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/music/squads/dtos.py b/src/domain/music/squads/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/music/squads/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/music/tracks/dtos.py b/src/domain/music/tracks/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/music/tracks/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/chats/dtos.py b/src/domain/social/chats/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/chats/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/comments/dtos.py b/src/domain/social/comments/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/comments/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/licenses/dtos.py b/src/domain/social/licenses/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/licenses/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/messages/dtos.py b/src/domain/social/messages/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/messages/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/notifications/dtos.py b/src/domain/social/notifications/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/notifications/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/playlists/dtos.py b/src/domain/social/playlists/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/playlists/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass diff --git a/src/domain/social/tags/dtos.py b/src/domain/social/tags/dtos.py new file mode 100644 index 0000000..473e80d --- /dev/null +++ b/src/domain/social/tags/dtos.py @@ -0,0 +1,13 @@ +from pydantic import BaseModel, ConfigDict + + +class BaseDTO(BaseModel): + model_config = ConfigDict(extra='ignore', from_attributes=True) + + +class BaseRequestDTO(BaseDTO): + pass + + +class BaseResponseDTO(BaseDTO): + pass