refactor: move pbft classes

This commit is contained in:
CaiHQ 2021-11-28 14:52:09 +08:00
parent 77b2340a6e
commit 242cd6d314
2 changed files with 8 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -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;