"""统计模块 Blueprint。""" from flask import Blueprint stats_bp = Blueprint("insurance_stats", __name__) @stats_bp.route("/overview", methods=["GET"]) def get_overview(): """使用概览。""" from insurance.utils.response import success return success({ "today_chats": 0, "active_users": 0, "kb_hit_rate": 0.0, "total_documents": 0, }) @stats_bp.route("/trend", methods=["GET"]) def get_trend(): """趋势数据。""" from insurance.utils.response import success return success({"metric": "", "granularity": "day", "data": []}) @stats_bp.route("/kb-health", methods=["GET"]) def get_kb_health(): """知识库健康度。""" from insurance.utils.response import success return success({ "hot_questions": [], "missed_questions": [], "coverage": {}, })