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

9 lines
421 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/POST /api/list_scenes.dspy
# 返回 {status:'ok', data:{list, total}};错误 {code,message,field,detail}
debug(f'scene_list.dspy: START params_kw={dict(params_kw)}')
params = dict(params_kw or {})
result = await list_scenes(params)
if 'list' in result:
return {'status': 'ok', 'data': {'list': result['list'], 'total': result['total']}}
return {'status': 'error', 'data': result}