Files
digital-psychology/docs/TECH_STACK.md
T
jackyu66gitandCursor 19d3cd5945 refactor(ECR-001): 接入 ESS 并完成结构对齐 Phase A–E
绑定 ESS 双轨治理,拆分超大 H5 页与 Go 引擎,抽出 membership 服务,
并将 star/fortune 重命名为 outlook(JSON 双写兼容);同时修复 /psy API 代理与首页 + 菜单层级。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 17:51:40 +08:00

33 lines
1.2 KiB
Markdown
Raw 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.
# Tech Stack — 愈心谷(Project Lock
权威镜像:`.ai/tech-stack.md`。本文供 ESS Agent 首读;冲突以 `.ai/tech-stack.md` + Accepted ADR 为准。
Global matrix(可选):`$ESS_ROOT/technology-governance/DECISION_MATRIX.md`
## Locked
| Layer | Choice |
|-------|--------|
| Language | Go 1.22+ |
| HTTP | gin |
| DB | PostgreSQL |
| Migrations | `apps/api/migrations/`(启动自动应用) |
| Log | structuredzap / slog);业务路径禁止 `fmt.Println` |
| Module | `github.com/yuxingu/digital-psychology/apps/api` |
| Frontend | Vue 3 + TypeScript `strict` + Vite + vue-router + Pinia |
| Shared TS | npm workspaces · `@yuxingu/sdk` · `@yuxingu/types` · `@yuxingu/utils` · `@yuxingu/ui` |
| Mini-program | Native WeChat scaffold;同 SDK adapters;不与 H5 共享 Vue SFC |
| Local deps | Docker Compose **仅** Postgres`docker-compose.dev.yml` |
| API health | `/api/v1/healthz` |
## Do not introduce without ADR
- 另一后端语言
- GraphQL / gRPC 作为主公网 API
- 未约定的 ORM 隐藏 SQL
- H5 上 Pinia 以外的新状态库
- Kafka / MongoDB(除非 Profile + ADR 明确允许)
- 无 ADR 的微服务拆分
Deviation = L3 + ADR`.ai/adr/`+ ECR。