Skip to content

Commit

Permalink
add base dtos
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkjfs committed Dec 20, 2024
1 parent 1d86815 commit 0ab30ca
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/domain/auth/artists/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/auth/producers/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/auth/users/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/music/albums/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/music/beatpacks/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/music/beats/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/music/soundkits/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/music/squads/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/music/tracks/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/chats/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/comments/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/licenses/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/messages/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/notifications/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/playlists/dtos.py
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions src/domain/social/tags/dtos.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0ab30ca

Please sign in to comment.