interface modify

This commit is contained in:
scq 2023-07-24 02:05:09 +08:00
parent a923bad5c8
commit ef02d2201f

View File

@ -1,48 +1,48 @@
module ShanxiRegistry{
export function getAllRepoCount() {
return executeContract("Registry","getAllRepoCount",arg).result;
return executeContract("ShanxiRegistry","getAllRepoCount",arg).result;
}
export function getAllDoCount() {
return executeContract("Registry","getAllDoCount",arg).result;
return executeContract("ShanxiRegistry","getAllDoCount",arg).result;
}
export function getAllSearchCount() {
return executeContract("Registry","getAllSearchCount",arg).result;
return executeContract("ShanxiRegistry","getAllSearchCount",arg).result;
}
export function getIndexStatistics() {
return executeContract("Registry","getIndexStatistics",arg).result;
return executeContract("ShanxiRegistry","getIndexStatistics",arg).result;
}
export function getRepoList() {
return executeContract("Registry","getRepoList",arg).result;
return executeContract("ShanxiRegistry","getRepoList",arg).result;
}
export function pingRepo() {
return executeContract("Registry","pingRepo",arg).result;
return executeContract("ShanxiRegistry","pingRepo",arg).result;
}
export function addRepoToRegistry() {
return executeContract("Registry","addRepoToRegistry",arg).result;
return executeContract("ShanxiRegistry","addRepoToRegistry",arg).result;
}
export function deleteRepoList() {
return executeContract("ControlProxy","deleteRepoList",arg).result;
}
export function listDataRequirements() {
return executeContract("Registry","listDataRequirements",arg).result;
return executeContract("ShanxiRegistry","listDataRequirements",arg).result;
}
export function createDataRequirements() {
return executeContract("Registry","createDataRequirements",arg).result;
return executeContract("ShanxiRegistry","createDataRequirements",arg).result;
}
export function issueDataRequirement() {
return executeContract("Registry","issueDataRequirement",arg).result;
return executeContract("ShanxiRegistry","issueDataRequirement",arg).result;
}
export function updateDataRequirements() {
return executeContract("Registry","updateDataRequirements",arg).result;
return executeContract("ShanxiRegistry","updateDataRequirements",arg).result;
}
export function getDataRequirement() {
return executeContract("Registry","getDataRequirement",arg).result;
return executeContract("ShanxiRegistry","getDataRequirement",arg).result;
}
export function deleteDataRequirements() {
return executeContract("Registry","deleteDataRequirements",arg).result;
return executeContract("ShanxiRegistry","deleteDataRequirements",arg).result;
}
export function getDoCount(arg) {
var ret = executeContract("Registry", "getDoCount", arg);
var ret = executeContract("ShanxiRegistry", "getDoCount", arg);
if (arg.indexOf("shanxi/Repository") != - 1)
ret.result.data.push({
"doId" : "shanxi/Repository", "count" : 3
@ -50,16 +50,16 @@ module ShanxiRegistry{
return ret.result;
}
export function addSubRegistry() {
return executeContract("Registry","addSubRegistry",arg).result;
return executeContract("ShanxiRegistry","addSubRegistry",arg).result;
}
export function deleteSubRegistry() {
return executeContract("Registry","deleteSubRegistry",arg).result;
return executeContract("ShanxiRegistry","deleteSubRegistry",arg).result;
}
export function listSubRegistry() {
return executeContract("Registry","listSubRegistry",arg).result;
return executeContract("ShanxiRegistry","listSubRegistry",arg).result;
}
export function getRelationInfo() {
return executeContract("Registry","getRelationInfo",arg).result;
return executeContract("ShanxiRegistry","getRelationInfo",arg).result;
}
@ArgSchema({
"!params" : [{
@ -74,7 +74,7 @@ module ShanxiRegistry{
}
req.attributes["offset"] = arg.offset;
req.attributes["count"] = arg.count;
var res = executeContract("Registry", "search", arg);
var res = executeContract("ShanxiRegistry", "search", arg);
return res.result;
}
}