获取数据组合维度信息
()
| 850 | |
| 851 | @app.route('/api/data_combinations', methods=['GET']) |
| 852 | def get_data_combinations(): |
| 853 | """获取数据组合维度信息""" |
| 854 | try: |
| 855 | return jsonify({ |
| 856 | "success": True, |
| 857 | "total_combinations": TOTAL_DATA_COMBINATIONS, |
| 858 | "base_types": list(DATA_TYPES.keys()), |
| 859 | "urgency_levels": DATA_URGENCY_LEVELS, |
| 860 | "qos_levels": DATA_QOS_LEVELS, |
| 861 | "security_levels": DATA_SECURITY_LEVELS, |
| 862 | "sample_combinations": DATA_COMBINATIONS[:10] # 返回前10个示例 |
| 863 | }) |
| 864 | except Exception: |
| 865 | logger.exception("接口处理失败") |
| 866 | return error_response("INTERNAL_ERROR") |
| 867 | |
| 868 | |
| 869 |
nothing calls this directly
no test coverage detected