//@范博 //以下接口都要给出示例参数 //类似于 @Descripton("参数为,{\"doId\":\"bdware.ss/Repox\"}") module networking { //前缀管理用到的接口 listLRS updateLRS createLRS deleteLRS export function getRouterInfo(arg) { if (!checkPermission(requester)) { YancloudUtil.exceptionReturn({ "msg":"no permission", "code":1 }); } var ret = executeContract(Global.router, "getRouterInfo", arg); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined; obj.code = 0; } else { YancloudUtil.exceptionReturn({ "msg":obj.data, "code":1 }); } obj.data.status = "online"; obj.data.date-=1000*60*60*24*30*8; obj.data.name = "山西广域数联网"; return obj; } export function listLRS(arg) { if (!checkPermission(requester)) { YancloudUtil.exceptionReturn({ "msg":"no permission", "code":1 }); } var ret = executeContract(Global.router, "listLRS", ""); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined; obj.code = 0; } else { YancloudUtil.exceptionReturn({ "msg":obj.data, "code":1 }); } for (var i = 0; i