Files
dukang/.cursor/rules/dukang-core.mdc
T
2026-07-01 17:12:46 +08:00

34 lines
1002 B
Plaintext
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.
---
description: 杜康好客全局约束 — 文档优先级、OWNER 边界、禁止跨模块直写表
alwaysApply: true
---
# 杜康好客 · 核心规则
## 文档
- 业务事实源:`杜康好客-V2编码手册.md`
- preV1 裁剪:`杜康好客-preV1编码手册.md`
- 协作:`conventions.md` · AI 入口:`AGENTS.md`
## 边界(2 人团队)
| 负责人 | 路径 |
|--------|------|
| jacy-dukang | `apps/h5-user/`, `apps/admin-web/`, `packages/`, `callbacks/`, `jobs/`, `common/`, `integrations/`, `modules/{iam,trade,benefit,analytics,catalog,settlement,ops}/` |
| 刘京尧 | `apps/h5-partner/`, `apps/h5-shop/`, `modules/{store,redeem}/` |
- 跨模块只 inject **exported Service**,禁止 `prisma` 写他人表
- `apps/*` 禁止 import `server/*`
- Mock 只在 `integrations/*`,不在业务 Service 散落
## 共享契约
- 枚举/DTO → `packages/shared-types`
- 纯规则 → `packages/domain`
## 提交
- Conventional Commits`feat(trade):` 等
- 不提交 `.env`