21 lines
850 B
Markdown
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.

# pbl_appcodes 模块技能(自动生成骨架 + 人工补充)
## 定位
PBL 枚举编码注入6+2 组,幂等,零表)
## 挂载
`from pbl_appcodes.init import load_pbl_appcodes``load_pbl_appcodes()`(应用 app/pbls.py init() 中按序调用)
## 数据表0 张)
- 无(零表模块)
## 契约接口2 个,路径 `/pbl_appcodes/api/<name>.dspy`
- `pbl_appcodes_inject`
- `pbl_appcodes_list`
## 陷阱
- 库名一律 `ServerEnv().get_module_dbname('pbl_appcodes')`,禁止硬编码 DBNAME。
- sqlor 只有 `C/U/D/R/I/sqlExe`;查询走 pbl_common.api 的 q_all/q_one已适配
- 所有读写强制带 `tenant_id`pbl_common.api.tenant_id()),缺失即 fail-closed 报错。
- 新增契约需同步三处api.py 定义 + __init__.py 导出 + init.py env 注册 + scripts/load_path.py 路径。