changes 报告模板

This commit is contained in:
P3ngSaM 2023-02-22 16:58:06 +08:00
parent 4f92c47b2e
commit 30537041ab
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ async def func(schemas: ReportSchemas.SearchReportFlowReqBody, db: Session = Dep
file = "{}信用评级报告初稿.docx".format(rf_item.company)
file_path = os.getcwd() + "\\Utils\\File\\generate\\" + file
return FileResponse(file_path, filename=file)
return FileResponse(file_path, filename=file, media_type='application/vnd.openxmlformats-officedocument.wordprocessingml.document')
@router.post("/download", summary="下载word报告", tags=["报告生成"])