MCPcopy Index your code
hub / github.com/Tong89/smartNode / get_data_combinations

Function get_data_combinations

backend/api.py:852–866  ·  view source on GitHub ↗

获取数据组合维度信息

()

Source from the content-addressed store, hash-verified

850
851@app.route('/api/data_combinations', methods=['GET'])
852def 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

Callers

nothing calls this directly

Calls 1

error_responseFunction · 0.90

Tested by

no test coverage detected