Implement task API with input validation; implement error handling; refactoring
This commit is contained in:
parent
19d264a03b
commit
50aff05614
24 changed files with 612 additions and 131 deletions
9
tofu_api/repositories/task_repository.py
Normal file
9
tofu_api/repositories/task_repository.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from tofu_api.models import Task
|
||||
from .base_repository import BaseRepository
|
||||
|
||||
|
||||
class TaskRepository(BaseRepository[Task]):
|
||||
"""
|
||||
Repository for tasks.
|
||||
"""
|
||||
model_cls = Task
|
||||
Loading…
Add table
Add a link
Reference in a new issue