mirror of
https://gitee.com/BDWare/front-base
synced 2025-01-09 17:34: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;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import org.bdware.sc.conn.ResultCallback;
|
||||
import org.bdware.server.nodecenter.Response;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@ -20,4 +22,9 @@ public class ReplyUtil {
|
||||
ret.put("data", data);
|
||||
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;
|
||||
|
||||
public class Response {
|
||||
String responseID;
|
||||
public String responseID;
|
||||
public String action;
|
||||
public Object data;
|
||||
public long executeTime;
|
||||
|
Loading…
Reference in New Issue
Block a user