pbl_blueprint/wwwroot/api/pbl_blueprint_subobject_list.dspy

14 lines
671 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.

# pbl_blueprint_subobject_list.dspy —— 子对象列表(subobject + blueprint_id)
debug('pbl_blueprint_subobject_list.dspy: START params_kw=%s' % dict(params_kw))
try:
tenant_id = params_kw.get('tenant_id') or None
res = await pbl_blueprint_subobject_list(dict(params_kw), request=request, tenant_id=tenant_id)
return res
except PblBlueprintError as e:
debug('pbl_blueprint_subobject_list.dspy: BIZ_ERR %s' % e.to_dict())
return e.to_dict()
except Exception as e:
exception('pbl_blueprint_subobject_list.dspy: %s' % format_exc())
return {'status': 'error', 'code': 'PBL_INTERNAL', 'message': str(e),
'total': 0, 'data': []}