Loading...
Loading...
Compare original and translation side by side
Read PRD.mdRead PRD.mdAs a [role]
I want [feature/capability]
So that [benefit/value]As a customer
I want to filter products by price range
So that I can find items within my budgetGiven I'm on the product listing page
When I set price range to $50-$100
Then I see only products in that range
And the count updates to show X products found作为[角色]
我希望[功能/能力]
以便[收益/价值]作为一名客户
我希望按价格区间筛选产品
以便找到符合预算的商品假设我在产品列表页
当我设置价格区间为50-100美元
则我只看到该区间内的产品
同时产品数量更新为找到X件Use Case: Purchase Product
Actor: Customer
Preconditions: Customer is logged in, has items in cart
Main Flow:
1. Customer clicks "Checkout"
2. System displays order summary
3. Customer selects payment method
4. Customer confirms purchase
5. System processes payment
6. System shows confirmation page
7. System sends email receipt
Alternative Flows:
4a. Payment fails → Show error, allow retry
5a. Item out of stock → Notify user, update cart
Postconditions:
- Order created
- Payment processed
- Inventory decremented
- Email sent用例:购买产品
角色:客户
前置条件:客户已登录,购物车中有商品
主流程:
1. 客户点击“结账”
2. 系统显示订单摘要
3. 客户选择支付方式
4. 客户确认购买
5. 系统处理支付
6. 系统显示确认页面
7. 系统发送邮件收据
备选流程:
4a. 支付失败 → 显示错误,允许重试
5a. 商品缺货 → 通知用户,更新购物车
后置条件:
- 订单已创建
- 支付已处理
- 库存已减少
- 邮件已发送pragmatic-tddpragmatic-tddpragmatic-tddpragmatic-tddQ: What problem are you trying to solve?
A: Team wastes 2h/day manually syncing data between 5 systems
Q: Who has this problem?
A: Operations team (12 people)
Q: How solving today?
A: Copy-paste between Excel, Salesforce, custom DB
Q: Why important now?
A: Hiring 10 more people next month, won't scale
Q: Success looks like?
A: Automatic sync, no manual work, always consistentQ: What type of solution?
A: Backend API (NOW we have context why!)
Q: Alternatives considered?
A: Zapier too expensive at our scale
Q: Constraints?
A: Must integrate Salesforce, must be secure (customer data)Q: Tech stack?
A: Must use Python (org requirement)
Q: Database?
A: Postgres + Redis
Q: Performance?
A: 1000 req/sec问:你试图解决什么问题?
答:团队每天浪费2小时手动同步5个系统之间的数据
问:谁面临这个问题?
答:运营团队(12人)
问:目前如何解决?
答:在Excel、Salesforce和自定义数据库之间复制粘贴
问:为什么现在变得重要?
答:下个月将招聘10名新员工,当前方式无法扩展
问:成功的标准是什么?
答:自动同步,无需手动操作,数据始终一致问:你认为哪种类型的解决方案最适合?
答:后端API(现在我们有了选择的依据!)
问:是否考虑过替代方案?
答:Zapier在我们的规模下成本过高
问:有哪些约束条件?
答:必须与Salesforce集成,必须保证安全(涉及客户数据)问:技术栈是什么?
答:必须使用Python(组织要求)
问:数据库呢?
答:Postgres + Redis
问:性能要求是什么?
答:1000次请求/秒undefinedundefinedpragmatic-tddpragmatic-tdd| Risk | Impact | Probability | Mitigation |
|---|
| 风险 | 影响 | 概率 | 缓解措施 |
|---|
---
---