sync
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from protocols.models import KeyDTO
|
||||
from protocols.repository import Repository
|
||||
from flask_demo_api.protocols.models import KeyDTO
|
||||
from flask_demo_api.protocols.repository import Repository
|
||||
|
||||
|
||||
class PostKey:
|
||||
|
13
flask_demo_api/usecase/delete.py
Normal file
13
flask_demo_api/usecase/delete.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask_demo_api.protocols.models import KeyDTO
|
||||
from flask_demo_api.protocols.repository import Repository
|
||||
|
||||
|
||||
class DelKey:
|
||||
def __init__(
|
||||
self,
|
||||
repository: Repository,
|
||||
) -> None:
|
||||
self.__repository = repository
|
||||
|
||||
def __call__(self, request: KeyDTO) -> KeyDTO:
|
||||
return self.__repository.delete_key(obj=request)
|
@@ -1,5 +1,5 @@
|
||||
from protocols.models import KeyDTO
|
||||
from protocols.repository import Repository
|
||||
from flask_demo_api.protocols.models import KeyDTO
|
||||
from flask_demo_api.protocols.repository import Repository
|
||||
|
||||
|
||||
class GetKey:
|
||||
|
@@ -1,5 +1,5 @@
|
||||
from protocols.models import KeyDTO
|
||||
from protocols.repository import Repository
|
||||
from flask_demo_api.protocols.models import KeyDTO
|
||||
from flask_demo_api.protocols.repository import Repository
|
||||
|
||||
|
||||
class PutKey:
|
||||
|
Reference in New Issue
Block a user