Commit 7177293f authored by 何家明's avatar 何家明

调整数据库交互逻辑

parent c897f392
......@@ -81,7 +81,8 @@ async def statistic_chat(customer_id: int):
AiChatRecordEntity,
AiChatRecordEntity.customer_id.__eq__(customer_id)
)
return ResultVo(data= 0 if result is None else result)
return ResultVo(data=0 if result is None else result)
@router.get(path="/chat", description="AI对话")
async def chat(request: Request, message: str):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment