mirror of
https://gitee.com/BDWare/front-base
synced 2025-01-10 01:44:01 +00:00
prune: delete ResultBack
This commit is contained in:
parent
d9c7bc5050
commit
85cc377563
15
src/main/src/org/bdware/server/action/ReplyUtil.java
Normal file
15
src/main/src/org/bdware/server/action/ReplyUtil.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user