feat:完善前端页面郭志胜

This commit is contained in:
2025-01-03 15:32:26 +08:00
parent b218c62ac7
commit 66b5d0d287
7 changed files with 452 additions and 5 deletions

View File

@@ -54,8 +54,9 @@ def orders_count_by_name():
finally:
# 取消订阅并关闭消费者
consumer.close()
print(messages)
return jsonify(messages)
@api_bp.route('/stream/ordernamecount')

View File

@@ -10,3 +10,19 @@ def index():
@page_bp.route('/show')
def test():
return render_template('show.html')
@page_bp.route('/ordercount')
def ordercount():
return render_template('ordercount.html')
@page_bp.route('/streamordersummary')
def streamodersummary():
return render_template('streamordersummary.html')
@page_bp.route('/streamordernamecount')
def streamodernamecount():
return render_template('streamordernamecount.html')
@page_bp.route('/streamsummary')
def streamsummary():
return render_template('streamsummary.html')