13 lines
616 B
Plaintext
13 lines
616 B
Plaintext
# pbl_blueprint_create.dspy —— 创建蓝图聚合根(薄包装,逻辑在 pbl_blueprint.api)
|
||
debug('pbl_blueprint_create.dspy: START params_kw=%s' % dict(params_kw))
|
||
try:
|
||
tenant_id = params_kw.get('tenant_id') or None
|
||
res = await pbl_blueprint_create(dict(params_kw), request=request, tenant_id=tenant_id)
|
||
return res
|
||
except PblBlueprintError as e:
|
||
debug('pbl_blueprint_create.dspy: BIZ_ERR %s' % e.to_dict())
|
||
return e.to_dict()
|
||
except Exception as e:
|
||
exception('pbl_blueprint_create.dspy: %s' % format_exc())
|
||
return {'status': 'error', 'code': 'PBL_INTERNAL', 'message': str(e)}
|