mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2025-07-07 22:56:06 +08:00
修复fastapi_example例子get_contact_detail请求的返回
This commit is contained in:
parent
f326669603
commit
88a6c75f14
|
@ -87,7 +87,7 @@ async def get_contacts(model: models.ClientReqModel):
|
||||||
|
|
||||||
|
|
||||||
@app.post("/contact/get_contact_detail", summary="获取指定联系人详细信息", tags=["Contact"],
|
@app.post("/contact/get_contact_detail", summary="获取指定联系人详细信息", tags=["Contact"],
|
||||||
response_model=models.ContactDetailModel)
|
response_model=models.ResponseModel)
|
||||||
@catch_exception()
|
@catch_exception()
|
||||||
async def get_contact_detail(model: models.ContactDetailReqModel):
|
async def get_contact_detail(model: models.ContactDetailReqModel):
|
||||||
data = client_mgr.get_client(model.guid).get_contact_detail(model.wxid)
|
data = client_mgr.get_client(model.guid).get_contact_detail(model.wxid)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user