最佳答案
AMEN-GoEdge-User_backEnd/Controller/UserService.py
async def registerUser(
...
commons: dict = Depends(Utils.init),
):
# 初始化
email = None
mobile = None
...
return res
你的代码不同,少了一个函数参数定义结束的右括号.
async def registerUser(
...
commons: dict = Utils.init:
# 这里少了参数定义结束的右括号
# 初始化
email = None
mobile = None
...
return res
讨论数量:
AMEN-GoEdge-User_backEnd/Controller/UserService.py
async def registerUser(
...
commons: dict = Depends(Utils.init),
):
# 初始化
email = None
mobile = None
...
return res
你的代码不同,少了一个函数参数定义结束的右括号.
async def registerUser(
...
commons: dict = Utils.init:
# 这里少了参数定义结束的右括号
# 初始化
email = None
mobile = None
...
return res
推荐文章: