Skip to content

Commit 2764297

Browse files
committed
feat: add Pydantic models for match requests and responses
1 parent 0219d8f commit 2764297

File tree

1 file changed

+14
-0
lines changed
  • services/matching-service/app/models

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from pydantic import BaseModel
2+
from typing import Optional
3+
4+
class MatchRequest(BaseModel):
5+
user_id: str
6+
difficulty: str
7+
topic: str
8+
language: str
9+
10+
class MatchResponse(BaseModel):
11+
success: bool
12+
peer_id: Optional[str] = None
13+
# queue_position: Optional[int] = None
14+
message: Optional[str] = None

0 commit comments

Comments
 (0)