Skip to content

Commit

Permalink
[WM] refactor: add some tips in README
Browse files Browse the repository at this point in the history
  • Loading branch information
GraceeFlower committed Feb 17, 2020
1 parent ea97232 commit 6dcc686
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,9 @@ ITEM0013 x 4
./gradlew clean test
```
3. 运行单个测试可以直接点击对应测试右边的绿色三角形

## 提示
- 可以将用户的点餐信息和优惠结果定义为对象
- 可以定义解析类和渲染类,用来解析用户的点餐输入和渲染汇总信息
- 可以将优惠活动用接口抽象,每种优惠定义一个实现类
- 甚至可以将无优惠的情况看做特殊的优惠,方便统一处理

0 comments on commit 6dcc686

Please sign in to comment.