entity/wwwroot/api/get_search_status.dspy

7 lines
337 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.

# get_search_status.dspy —— 实体状态字典下拉appcodes entity_status[{value, text}]
try:
opts = await get_entity_status_options()
return {'code': 'OK', 'message': 'success', 'data': opts}
except Exception as e:
return {'code': 'DB_ERROR', 'message': '查询状态下拉失败', 'field': '', 'detail': str(e)}