mirror of
https://gitee.com/BDWare/router-backend
synced 2025-01-27 02:04:05 +00:00
style
This commit is contained in:
parent
ba32cc25e7
commit
f71bfda28e
@ -21,17 +21,19 @@ public class UnitActions {
|
|||||||
public UnitActions(NCManagerAction managerAction) {
|
public UnitActions(NCManagerAction managerAction) {
|
||||||
this.managerAction = managerAction;
|
this.managerAction = managerAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String convertContractName(String contractID) {
|
||||||
|
ContractDesp desp = NodeCenterActions.getContractByName(contractID);
|
||||||
|
if (desp != null) return desp.contractID;
|
||||||
|
return contractID;
|
||||||
|
}
|
||||||
|
|
||||||
private void simpleReply(ResultCallback resultCallback, String action, Object data) {
|
private void simpleReply(ResultCallback resultCallback, String action, Object data) {
|
||||||
Map<String, Object> jsonResult = new HashMap<>();
|
Map<String, Object> jsonResult = new HashMap<>();
|
||||||
jsonResult.put("action", action);
|
jsonResult.put("action", action);
|
||||||
jsonResult.put("data", data);
|
jsonResult.put("data", data);
|
||||||
resultCallback.onResult(jsonResult);
|
resultCallback.onResult(jsonResult);
|
||||||
}
|
}
|
||||||
private static String convertContractName(String contractID) {
|
|
||||||
ContractDesp desp = NodeCenterActions.getContractByName(contractID);
|
|
||||||
if (desp != null) return desp.contractID;
|
|
||||||
return contractID;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 显示当前用户可见的集群
|
* 显示当前用户可见的集群
|
||||||
|
Loading…
Reference in New Issue
Block a user