pbl_blueprint/wwwroot/api/pbl_blueprint_fork.dspy

13 lines
610 B
Plaintext

# pbl_blueprint_fork.dspy —— 派生蓝图(深拷贝聚合根+子对象并重映射内部引用)
debug('pbl_blueprint_fork.dspy: START params_kw=%s' % dict(params_kw))
try:
tenant_id = params_kw.get('tenant_id') or None
res = await pbl_blueprint_fork(dict(params_kw), request=request, tenant_id=tenant_id)
return res
except PblBlueprintError as e:
debug('pbl_blueprint_fork.dspy: BIZ_ERR %s' % e.to_dict())
return e.to_dict()
except Exception as e:
exception('pbl_blueprint_fork.dspy: %s' % format_exc())
return {'status': 'error', 'code': 'PBL_INTERNAL', 'message': str(e)}