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

10 lines
447 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.

# 场景状态下拉REST GET /api/get_search_status.dspy
# scene 状态 + 导入状态共用 appcodes 下拉;按调用方 parentid 区分
debug(f'scene_get_status_options.dspy: START params_kw={dict(params_kw)}')
parentid = (params_kw or {}).get('parentid', 'scene_status')
if parentid == 'import_status':
opts = await get_import_status_options()
else:
opts = await get_scene_status_options()
return {'status': 'ok', 'data': opts}