Ready for Review
As a 系统管理员, I want 将系统配置模块集成到认证和支付模块中, so that 小程序登录和支付功能可以使用租户特定的配置参数
wx.mini.app.id, wx.mini.app.secretwx.payment.merchant.id, wx.payment.v3.key, wx.payment.cert.serial.no, wx.payment.public.key, wx.payment.private.key, wx.payment.notify.urlpackages/core-module-mt/auth-module-mt/packages/mini-payment-mt/packages/core-module-mt/system-config-module-mt/packages/shared-utils/wx.mini.app.id - 微信小程序AppIDwx.mini.app.secret - 微信小程序AppSecretwx.payment.merchant.id - 微信支付商户IDwx.payment.v3.key - 微信支付V3密钥wx.payment.cert.serial.no - 商户证书序列号wx.payment.public.key - 商户公钥wx.payment.private.key - 商户私钥wx.payment.notify.url - 支付回调URLtests/integration/目录packages/core-module-mt/auth-module-mt/tests/integration/system-config-integration.test.ts - 认证模块系统配置集成测试packages/mini-payment-mt/tests/integration/system-config-integration.test.ts - 支付模块系统配置集成测试packages/core-module-mt/file-module-mt/packages/core-module-mt/user-module-mt/.mt.ts 后缀,遵循多租户包命名规范| Date | Version | Description | Author |
|---|---|---|---|
| 2025-11-20 | 1.0 | 初始故事创建 | Bob (Scrum Master) |
新增文件:
packages/core-module-mt/system-config-module-mt/src/constants/config-keys.constants.mt.ts - 配置键常量定义packages/core-module-mt/system-config-module-mt/src/constants/index.mt.ts - 常量导出文件packages/core-module-mt/auth-module-mt/tests/integration/system-config-integration.test.ts - 认证模块系统配置集成测试packages/mini-payment-mt/tests/integration/system-config-integration.test.ts - 支付模块系统配置集成测试修改文件:
packages/core-module-mt/auth-module-mt/src/services/mini-auth.service.mt.ts - 添加SystemConfigServiceMt依赖,支持租户ID参数packages/core-module-mt/auth-module-mt/src/routes/mini-login.route.mt.ts - 扩展Schema支持租户ID参数packages/mini-payment-mt/src/services/payment.mt.service.ts - 添加SystemConfigServiceMt依赖,支持动态配置packages/core-module-mt/package.json - 添加system-config-module-mt导出配置packages/core-module-mt/system-config-module-mt/src/index.mt.ts - 添加constants导出