entity/wwwroot/api/get_search_world_id.dspy

7 lines
301 B
Plaintext

# get_search_world_id.dspy —— 世界下拉数据源 [{value, text}]
try:
opts = await get_world_options()
return {'code': 'OK', 'message': 'success', 'data': opts}
except Exception as e:
return {'code': 'DB_ERROR', 'message': '查询世界下拉失败', 'field': '', 'detail': str(e)}