migration-tools/0081-add-interface-to-export-migration-check-report.patch

39 lines
967 B
Diff

From 70b692876cec1e7615fe157fdab44293b0cbb697 Mon Sep 17 00:00:00 2001
From: lixin <lixinb@uniontech.com>
Date: Mon, 13 Nov 2023 14:39:14 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=BF=81=E7=A7=BB=E6=A3=80?=
=?UTF-8?q?=E6=B5=8B=E6=8A=A5=E5=91=8A=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/index.py b/index.py
index 2f5c946..505e91f 100644
--- a/index.py
+++ b/index.py
@@ -192,6 +192,17 @@ def get_storage_num():
return Response(mod, content_type='application/json')
+@app.route('/export_reports', methods=['GET', 'POST'])
+def export_reports():
+ """
+ 导出迁移检测报告
+ :return:
+ """
+ mod = check_methods()
+ if mod:
+ return Response(mod, content_type='application/json')
+
+
@app.route('/', methods=['GET', 'POST'])
def MT_index():
"""
--
2.20.1