From 8097e9b7698dfc432efc52b6cd4d795387e9d792 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Tue, 5 Aug 2025 20:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/api_routes.py | 6 ++ templates/db_compare.html | 37 ++++++- templates/index.html | 195 ++++++++++++++++++++++++----------- templates/redis_compare.html | 10 +- 4 files changed, 175 insertions(+), 73 deletions(-) diff --git a/modules/api_routes.py b/modules/api_routes.py index d5bd17f..67d66f3 100644 --- a/modules/api_routes.py +++ b/modules/api_routes.py @@ -48,6 +48,12 @@ def setup_routes(app, query_log_collector): @app.route('/db-compare') def db_compare(): return render_template('db_compare.html') + + # 新增:更语义化的路由别名 + @app.route('/cassandra-compare') + def cassandra_compare(): + """Cassandra数据比对工具 - 语义化路由""" + return render_template('db_compare.html') @app.route('/redis-compare') def redis_compare(): diff --git a/templates/db_compare.html b/templates/db_compare.html index eb8bb69..58d26aa 100644 --- a/templates/db_compare.html +++ b/templates/db_compare.html @@ -3,7 +3,7 @@ - 数据库查询比对工具 - 支持分表查询 + Cassandra数据比对工具 - DataTools Pro @@ -262,7 +272,7 @@
+ + +

- 数据库查询比对工具 + Cassandra数据比对工具 支持单表查询和分表查询两种模式

diff --git a/templates/index.html b/templates/index.html index 87245eb..3bc2ce0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ - 大数据工具集合 + DataTools Pro - 专业数据处理工具平台