mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
SDK可指定requestMethod
This commit is contained in:
@@ -75,7 +75,15 @@ public class GetStoryRequest extends BaseRequest<GetStoryResponse> {
|
||||
return "alipay.story.find";
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
可重写`getRequestMethod()`方法指定HTTP请求method,默认是POST。
|
||||
|
||||
```java
|
||||
@Override
|
||||
protected RequestMethod getRequestMethod() {
|
||||
return RequestMethod.GET;
|
||||
}
|
||||
```
|
||||
|
||||
### 使用方式
|
||||
|
Reference in New Issue
Block a user