pbl_compiler/wwwroot/api/pbl_game_definition_rules_get.dspy
2026-09-19 10:00:33 +08:00

15 lines
803 B
Plaintext
Raw Permalink 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.

# -*- coding: utf-8 -*-
# pbl_game_definition_rules_get.dspy —— M3b 读回 game_definition 规则四件套薄包装。
# 契约实现pbl_compiler/rules_export_api.py::gd_rules_get_contract
# 入参id|game_def_id 或 blueprint_id(+version_no)tenant_id 由服务端上下文强制。
debug(f'pbl_game_definition_rules_get.dspy: START params_kw={dict(params_kw)}')
try:
_kw = dict(params_kw or {})
_res = await pbl_game_definition_rules_get(**_kw)
return json.dumps(_res, ensure_ascii=False, default=str)
except Exception as _e:
debug('pbl_game_definition_rules_get.dspy: ERROR ' + str(_e))
return json.dumps({'status': 'error', 'code': 'E_DSPY_GD_RULES_GET',
'message': str(_e), 'data': None},
ensure_ascii=False, default=str)