优化ApiArgumentResolver

This commit is contained in:
tanghc
2019-04-29 19:58:30 +08:00
parent dcd5017b16
commit ff20b1069a
5 changed files with 9 additions and 12 deletions

View File

@@ -59,14 +59,12 @@ public class GoodsParam {
```java
@ApiMapping(value = "goods.add")
public Object addGoods(GoodsParam param/* 业务参数必须放在第一位对应biz_content */, HttpServletRequest request) {
public Object addGoods(GoodsParam param, HttpServletRequest request) {
System.out.println(request.getParameter("method"));
return param;
}
```
**注意**:业务参数必须放在第一位
## 接口命名
接口命名没有做强制要求,但我们还是推荐按照下面的方式进行命名: