first commit
This commit is contained in:
0
dto/__init__.py
Normal file
0
dto/__init__.py
Normal file
10
dto/di.py
Normal file
10
dto/di.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from repositories.users import UserRepository
|
||||
from services.user_service import UserService
|
||||
|
||||
|
||||
@dataclass
|
||||
class DependenciesDTO:
|
||||
user_repository: UserRepository
|
||||
user_service: UserService
|
||||
7
dto/users.py
Normal file
7
dto/users.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class NewUserDTO:
|
||||
id: int
|
||||
referal: int
|
||||
Reference in New Issue
Block a user