ControlProxy/backend/yjs
2023-07-24 02:05:09 +08:00
..
assets intial commit 2022-04-19 09:26:59 +08:00
audit.yjs all interface refactor 2023-07-11 22:57:57 +08:00
ControlProxy.yjs all interface refactor 2023-07-11 22:57:57 +08:00
ControlProxy接口.md intial commit 2022-04-19 09:26:59 +08:00
DAC.yjs intial commit 2022-04-19 09:26:59 +08:00
manifest.json update controlproxy 2022-06-25 11:11:03 +08:00
networking.yjs update submodules 2023-05-23 17:42:59 +08:00
README.md intial commit 2022-04-19 09:26:59 +08:00
repodetail.yjs patch repo 2023-07-04 10:49:09 +08:00
search.yjs patch repo 2023-07-04 10:49:09 +08:00
ShanxiAuditPRoxy.yjs all interface refactor 2023-07-11 22:57:57 +08:00
ShanxiDataRepo.yjs all interface refactor 2023-07-11 22:57:57 +08:00
ShanxiGlobalRouter.yjs all interface refactor 2023-07-12 00:55:14 +08:00
ShanxiRegistry.yjs interface modify 2023-07-24 02:05:09 +08:00
union.yjs patch repo 2023-07-04 10:49:09 +08:00

函数名addRepo

参数

可接收JSON或是JSON字符串格式如下

{"doId":"bdware.ss/Repox"}

返回结果

code为0表示成功为1表示失败。msg为失败原因。

{"msg":"success","rrt":"110ms","code":0}

函数名pingRepo

参数

可接收JSON或是JSON字符串格式如下

{"doId":"bdware.ss/Repox"}

返回结果

code为0表示成功为1表示失败。msg为失败原因。 成功的时候会返回rrt表示ping所花的时间。

{"msg":"success","rrt":"110ms","code":0}

函数名getRepoList

参数

无参数

返回结果

[
  {
    "doId":"bdware.ss/Repo13",
    "address":"tcp://127.0.0.1:20513",
    "owner":"user13",
    "version":"2.1",
    "descritpion":"这是bdware.ss的第13号数字对象仓库",
    "createDate":"2022-01-03"
  },
  {
    "doId":"bdware.ss/Repo14",
    "address":"tcp://127.0.0.1:20514",
    "owner":"user14",
    "version":"2.1",
    "descritpion":"这是bdware.ss的第14号数字对象仓库",
    "createDate":"2022-01-03"
  }]

函数名deleteRepo

参数

{"doId":"bdware.ss/Repox"}

返回结果

{"msg":"success","code":0}

函数名deleteRepoList

参数

[{"doId":"bdware.ss/Repox"},{"doId":"bdware.ss/Repoy"}]

返回结果

{"msg":"success","code":0}

函数名updateRepo

参数

 {
    "doId":"bdware.ss/Repo14",
    "address":"tcp://127.0.0.1:20514",
    "owner":"user14",
    "version":"2.1",
    "descritpion":"这是bdware.ss的第14号数字对象仓库",
  }

返回结果

{"msg":"success","code":0}