entity/wwwroot/api/get_search_import_status.dspy

7 lines
350 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_import_status.dspy —— 导入状态字典下拉appcodes import_status[{value, text}]
try:
opts = await get_import_status_options()
return {'code': 'OK', 'message': 'success', 'data': opts}
except Exception as e:
return {'code': 'DB_ERROR', 'message': '查询导入状态下拉失败', 'field': '', 'detail': str(e)}