From 88879b111dcfdd575ebfdcc7c102f85fff92eac7 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Tue, 17 Dec 2024 11:02:43 +0100 Subject: [PATCH] :sparkles: Adding the PinDTO (for the patch route) --- app/dto/PinDTO.py | 5 +++++ app/dto/__init__.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/dto/PinDTO.py diff --git a/app/dto/PinDTO.py b/app/dto/PinDTO.py new file mode 100644 index 0000000..c2b22ae --- /dev/null +++ b/app/dto/PinDTO.py @@ -0,0 +1,5 @@ +from pydantic import BaseModel + +class PinDTO(BaseModel): + title: str + description: str \ No newline at end of file diff --git a/app/dto/__init__.py b/app/dto/__init__.py index a6f30f0..cb3deeb 100644 --- a/app/dto/__init__.py +++ b/app/dto/__init__.py @@ -1,4 +1,5 @@ from .UserRegisterDTO import UserRegisterDTO from .FriendAddDTO import FriendAddDTO from .FriendListDTO import FriendListDTO -from .UserDTO import UserDTO \ No newline at end of file +from .UserDTO import UserDTO +from .PinDTO import PinDTO \ No newline at end of file