prune: delete ResultBack

This commit is contained in:
CaiHQ 2021-11-01 17:31:35 +08:00
parent d9c7bc5050
commit 85cc377563

View File

@ -0,0 +1,15 @@
package org.bdware.server.action;
import org.bdware.sc.conn.ResultCallback;
import java.util.HashMap;
import java.util.Map;
public class ReplyUtil {
public static void simpleReply(ResultCallback cb, String action, Object data) {
Map<String, Object> ret = new HashMap<>();
ret.put("action", action);
ret.put("data", data);
cb.onResult(ret);
}
}