mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
2.1.0
This commit is contained in:
@@ -56,14 +56,11 @@ public abstract class BaseRequest<T extends BaseResponse> {
|
||||
protected abstract String method();
|
||||
|
||||
public BaseRequest() {
|
||||
this.setMethodVersion(this.method(), this.version());
|
||||
this.method = method();
|
||||
this.version = version();
|
||||
}
|
||||
|
||||
protected BaseRequest(String method, String version) {
|
||||
this.setMethodVersion(method, version);
|
||||
}
|
||||
|
||||
private void setMethodVersion(String method, String version) {
|
||||
this.method = method;
|
||||
this.version = version;
|
||||
}
|
||||
|
Reference in New Issue
Block a user