新完成了一些metaDetail函数

This commit is contained in:
PhiTer9426
2022-06-01 15:37:08 +08:00
parent 7783f78a95
commit 493f381586
3 changed files with 84 additions and 22 deletions

View File

@@ -13,6 +13,7 @@ module metaStandardDetail {
// };
}
//{"localDataSample":{"owner":"abcdef","size":"1234"},"mapRule":{"所有者":"${val.owner}","大小":"${val.size*1000}","偏移过的大小":"${edp(val.size,30.0)}" }}
export function verifyRule(arg) {
arg = convertArgToJson(arg);
var ret = {};
@@ -80,7 +81,6 @@ module metaStandardDetail {
export function listRemoteRegistry() {
arg = convertArgToJson(arg);
var ret = [];
var ret = [{
"registryID":"macjw",
@@ -124,25 +124,10 @@ module metaStandardDetail {
//{"offset":..,"count":,"localMetaStandardDoid":}
export function listMetaStandardRelaction(arg) {
var ret = [];
ret.push({
"name":"煤矿传感数据映射",
"localMetaStandardDoid":"xx.xx/adfa",
"remoteMetaStandardDoid":"ab.ccd/aaaaa-aaa",
"createDate":167227222,
"updateDate":1111111,
"creator":"aabbcc",
"updater":"aabbcc",
"mapRule":{
"owner":"${val.大小}",
"pubkey":"function(val){}",
}
});
return {
"total":10,
"data":ret,
"code":0
};
arg = convertArgToJson(arg);
var ret = org.bdware.sc.registry.RegistryDB.queryMapRuleByOffset(arg);
ret.code = org.bdware.sc.registry.RegistryDB.getLastExecuteStatus();
return ret;
}
//{"localMetaID":"xxx","mapRule":{},"remoteMetaID":"xxx"}