mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
优化ApiArgumentResolver
This commit is contained in:
@@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
**注意**:业务参数必须放在第一位
|
||||
|
||||
## 接口命名
|
||||
|
||||
接口命名没有做强制要求,但我们还是推荐按照下面的方式进行命名:
|
||||
|
Reference in New Issue
Block a user