scene/wwwroot/api/get_scene.dspy
2026-08-29 12:44:22 +08:00

7 lines
286 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# scene 单条查询REST GET /api/get_scene.dspy?id=xxx
debug(f'scene_get.dspy: START params_kw={dict(params_kw)}')
result = await get_scene(dict(params_kw or {}))
if 'data' in result:
return {'status': 'ok', 'data': result['data']}
return {'status': 'error', 'data': result}