mirror of
https://gitee.com/BDWare/front-base
synced 2025-01-10 01:44:01 +00:00
refactor: move pbft classes
This commit is contained in:
parent
77b2340a6e
commit
242cd6d314
@ -1,6 +1,8 @@
|
|||||||
package org.bdware.server.action;
|
package org.bdware.server.action;
|
||||||
|
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
import org.bdware.sc.conn.ResultCallback;
|
import org.bdware.sc.conn.ResultCallback;
|
||||||
|
import org.bdware.server.nodecenter.Response;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -20,4 +22,9 @@ public class ReplyUtil {
|
|||||||
ret.put("data", data);
|
ret.put("data", data);
|
||||||
resultCallback.onResult(ret);
|
resultCallback.onResult(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void injectRequestID(Response response, JsonObject json) {
|
||||||
|
if (json.has("requestID"))
|
||||||
|
response.responseID = json.get("requestID").getAsString();
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package org.bdware.server.nodecenter;
|
package org.bdware.server.nodecenter;
|
||||||
|
|
||||||
public class Response {
|
public class Response {
|
||||||
String responseID;
|
public String responseID;
|
||||||
public String action;
|
public String action;
|
||||||
public Object data;
|
public Object data;
|
||||||
public long executeTime;
|
public long executeTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user