kra-oa/pkg/README.md

17 lines
800 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.

# Shared Packages
这里放跨业务模块的基础设施,不放具体业务表或业务用例。
当前包含:
- `database`:跨模块共享的 GORM 支持、分页和迁移执行器
- `module`:模块迁移、后台元数据和路由注册协议
- `task`:跨模块共享的进程内任务注册表和贡献协议
- `logging`:跨 app 复用的结构化日志能力
- `httpx`:跨 HTTP 模块共享的 JSON 响应结构、分页结构和状态码
- `paymentkit`支付金额、签名、状态、provider 标识和回调应答纯函数
- `protoutil`:与业务无关的 protobuf JSON 局部合并工具
`pkg` 只能提供机制和稳定协议,不能引用任何 `app/*/internal`。数据库配置加载、
系统集成配置、系统表和 provider 生命周期仍由 `` 负责。