forked from iod/ControlProxy
interface modify
This commit is contained in:
parent
a923bad5c8
commit
ef02d2201f
@ -1,48 +1,48 @@
|
|||||||
module ShanxiRegistry{
|
module ShanxiRegistry{
|
||||||
export function getAllRepoCount() {
|
export function getAllRepoCount() {
|
||||||
return executeContract("Registry","getAllRepoCount",arg).result;
|
return executeContract("ShanxiRegistry","getAllRepoCount",arg).result;
|
||||||
}
|
}
|
||||||
export function getAllDoCount() {
|
export function getAllDoCount() {
|
||||||
return executeContract("Registry","getAllDoCount",arg).result;
|
return executeContract("ShanxiRegistry","getAllDoCount",arg).result;
|
||||||
}
|
}
|
||||||
export function getAllSearchCount() {
|
export function getAllSearchCount() {
|
||||||
return executeContract("Registry","getAllSearchCount",arg).result;
|
return executeContract("ShanxiRegistry","getAllSearchCount",arg).result;
|
||||||
}
|
}
|
||||||
export function getIndexStatistics() {
|
export function getIndexStatistics() {
|
||||||
return executeContract("Registry","getIndexStatistics",arg).result;
|
return executeContract("ShanxiRegistry","getIndexStatistics",arg).result;
|
||||||
}
|
}
|
||||||
export function getRepoList() {
|
export function getRepoList() {
|
||||||
return executeContract("Registry","getRepoList",arg).result;
|
return executeContract("ShanxiRegistry","getRepoList",arg).result;
|
||||||
}
|
}
|
||||||
export function pingRepo() {
|
export function pingRepo() {
|
||||||
return executeContract("Registry","pingRepo",arg).result;
|
return executeContract("ShanxiRegistry","pingRepo",arg).result;
|
||||||
}
|
}
|
||||||
export function addRepoToRegistry() {
|
export function addRepoToRegistry() {
|
||||||
return executeContract("Registry","addRepoToRegistry",arg).result;
|
return executeContract("ShanxiRegistry","addRepoToRegistry",arg).result;
|
||||||
}
|
}
|
||||||
export function deleteRepoList() {
|
export function deleteRepoList() {
|
||||||
return executeContract("ControlProxy","deleteRepoList",arg).result;
|
return executeContract("ControlProxy","deleteRepoList",arg).result;
|
||||||
}
|
}
|
||||||
export function listDataRequirements() {
|
export function listDataRequirements() {
|
||||||
return executeContract("Registry","listDataRequirements",arg).result;
|
return executeContract("ShanxiRegistry","listDataRequirements",arg).result;
|
||||||
}
|
}
|
||||||
export function createDataRequirements() {
|
export function createDataRequirements() {
|
||||||
return executeContract("Registry","createDataRequirements",arg).result;
|
return executeContract("ShanxiRegistry","createDataRequirements",arg).result;
|
||||||
}
|
}
|
||||||
export function issueDataRequirement() {
|
export function issueDataRequirement() {
|
||||||
return executeContract("Registry","issueDataRequirement",arg).result;
|
return executeContract("ShanxiRegistry","issueDataRequirement",arg).result;
|
||||||
}
|
}
|
||||||
export function updateDataRequirements() {
|
export function updateDataRequirements() {
|
||||||
return executeContract("Registry","updateDataRequirements",arg).result;
|
return executeContract("ShanxiRegistry","updateDataRequirements",arg).result;
|
||||||
}
|
}
|
||||||
export function getDataRequirement() {
|
export function getDataRequirement() {
|
||||||
return executeContract("Registry","getDataRequirement",arg).result;
|
return executeContract("ShanxiRegistry","getDataRequirement",arg).result;
|
||||||
}
|
}
|
||||||
export function deleteDataRequirements() {
|
export function deleteDataRequirements() {
|
||||||
return executeContract("Registry","deleteDataRequirements",arg).result;
|
return executeContract("ShanxiRegistry","deleteDataRequirements",arg).result;
|
||||||
}
|
}
|
||||||
export function getDoCount(arg) {
|
export function getDoCount(arg) {
|
||||||
var ret = executeContract("Registry", "getDoCount", arg);
|
var ret = executeContract("ShanxiRegistry", "getDoCount", arg);
|
||||||
if (arg.indexOf("shanxi/Repository") != - 1)
|
if (arg.indexOf("shanxi/Repository") != - 1)
|
||||||
ret.result.data.push({
|
ret.result.data.push({
|
||||||
"doId" : "shanxi/Repository", "count" : 3
|
"doId" : "shanxi/Repository", "count" : 3
|
||||||
@ -50,16 +50,16 @@ module ShanxiRegistry{
|
|||||||
return ret.result;
|
return ret.result;
|
||||||
}
|
}
|
||||||
export function addSubRegistry() {
|
export function addSubRegistry() {
|
||||||
return executeContract("Registry","addSubRegistry",arg).result;
|
return executeContract("ShanxiRegistry","addSubRegistry",arg).result;
|
||||||
}
|
}
|
||||||
export function deleteSubRegistry() {
|
export function deleteSubRegistry() {
|
||||||
return executeContract("Registry","deleteSubRegistry",arg).result;
|
return executeContract("ShanxiRegistry","deleteSubRegistry",arg).result;
|
||||||
}
|
}
|
||||||
export function listSubRegistry() {
|
export function listSubRegistry() {
|
||||||
return executeContract("Registry","listSubRegistry",arg).result;
|
return executeContract("ShanxiRegistry","listSubRegistry",arg).result;
|
||||||
}
|
}
|
||||||
export function getRelationInfo() {
|
export function getRelationInfo() {
|
||||||
return executeContract("Registry","getRelationInfo",arg).result;
|
return executeContract("ShanxiRegistry","getRelationInfo",arg).result;
|
||||||
}
|
}
|
||||||
@ArgSchema({
|
@ArgSchema({
|
||||||
"!params" : [{
|
"!params" : [{
|
||||||
@ -74,7 +74,7 @@ module ShanxiRegistry{
|
|||||||
}
|
}
|
||||||
req.attributes["offset"] = arg.offset;
|
req.attributes["offset"] = arg.offset;
|
||||||
req.attributes["count"] = arg.count;
|
req.attributes["count"] = arg.count;
|
||||||
var res = executeContract("Registry", "search", arg);
|
var res = executeContract("ShanxiRegistry", "search", arg);
|
||||||
return res.result;
|
return res.result;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user