refactor requests related dto with pydantic

This commit is contained in:
NoeBerdoz
2025-04-12 10:00:19 +02:00
parent 8e9db9f1da
commit 93fa2dd5ac
3 changed files with 9 additions and 14 deletions

5
app.py
View File

@ -1,7 +1,6 @@
from dotenv import load_dotenv
from flask import Flask
from dto.requests import GameStartRequest
from dto.requests import GameStartRequestDTO
from services.julius_baer_api_client import JuliusBaerApiClient
app = Flask(__name__)
@ -14,7 +13,7 @@ def hello_world(): # put application's code here
if __name__ == '__main__':
jb_client = JuliusBaerApiClient()
game_start_request = GameStartRequest("Welch")
game_start_request = GameStartRequestDTO(player_name="Welch")
res = jb_client.start_game(game_start_request)
print(res)