修复fastapi_example例子get_contact_detail请求的返回

This commit is contained in:
evilbeast 2022-09-04 23:57:01 +08:00
parent f326669603
commit 88a6c75f14

View File

@ -87,7 +87,7 @@ async def get_contacts(model: models.ClientReqModel):
@app.post("/contact/get_contact_detail", summary="获取指定联系人详细信息", tags=["Contact"],
response_model=models.ContactDetailModel)
response_model=models.ResponseModel)
@catch_exception()
async def get_contact_detail(model: models.ContactDetailReqModel):
data = client_mgr.get_client(model.guid).get_contact_detail(model.wxid)