Browse Source

ft: 代码修改

master
SisMaker 3 years ago
parent
commit
1e16306f9e
10 changed files with 15 additions and 15 deletions
  1. +1
    -1
      src/agApi/agAnalyzers.erl
  2. +2
    -2
      src/agApi/agAsyncResultHandling.erl
  3. +2
    -2
      src/agApi/agDbMgr.erl
  4. +2
    -2
      src/agApi/agFoxxServices.erl
  5. +1
    -1
      src/agApi/agHotBackup.erl
  6. +1
    -1
      src/agApi/agIndexes.erl
  7. +1
    -1
      src/agApi/agTasks.erl
  8. +1
    -1
      src/agApi/agTransactions.erl
  9. +3
    -3
      src/agApi/agUserMgr.erl
  10. +1
    -1
      src/agApi/agViews.erl

+ 1
- 1
src/agApi/agAnalyzers.erl View File

@ -52,7 +52,7 @@ getAnalyzer(PoolNameOrSocket, AnalyzerName) ->
% features % features
% %
% 200 % 200
getAnalyzerList(PoolNameOrSocket) ->
analyzerList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/analyzer">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/analyzer">>).
% %

+ 2
- 2
src/agApi/agAsyncResultHandling.erl View File

@ -129,10 +129,10 @@ getAsyncJobStatus(PoolNameOrSocket, JodId) ->
% %
% 200 % 200
% 400type或值无效 % 400type或值无效
getAsyncJobList(PoolNameOrSocket, Type) ->
asyncJobList(PoolNameOrSocket, Type) ->
Path = <<"/_api/job/", (agMiscUtils:toBinary(Type))/binary>>, Path = <<"/_api/job/", (agMiscUtils:toBinary(Type))/binary>>,
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path).
getAsyncJobList(PoolNameOrSocket, Type, QueryPars) ->
asyncJobList(PoolNameOrSocket, Type, QueryPars) ->
Path = <<"/_api/job/", (agMiscUtils:toBinary(Type))/binary>>, Path = <<"/_api/job/", (agMiscUtils:toBinary(Type))/binary>>,
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path, QueryPars). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path, QueryPars).

+ 2
- 2
src/agApi/agDbMgr.erl View File

@ -42,7 +42,7 @@ curDbInfo(PoolNameOrSocket) ->
% %
% 200 % 200
% 400 % 400
visitDbs(PoolNameOrSocket) ->
visitDbList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/database/user">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/database/user">>).
% %
@ -54,7 +54,7 @@ visitDbs(PoolNameOrSocket) ->
% 200 % 200
% 400 % 400
% 403_system数据库中执行 % 403_system数据库中执行
allDbs(PoolNameOrSocket) ->
dbList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/database">>, ?AgDefQuery, ?AgDefHeader, ?AgDefBody, true). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/database">>, ?AgDefQuery, ?AgDefHeader, ?AgDefBody, true).
% %

+ 2
- 2
src/agApi/agFoxxServices.erl View File

@ -30,10 +30,10 @@
% versionsemver兼容的版本字符串 % versionsemver兼容的版本字符串
% %
% 200 % 200
getFoxxList(PoolNameOrSocket) ->
foxxList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/foxx">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/foxx">>).
getFoxxList(PoolNameOrSocket, QueryPars) ->
foxxList(PoolNameOrSocket, QueryPars) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/foxx">>, QueryPars). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/foxx">>, QueryPars).
% %

+ 1
- 1
src/agApi/agHotBackup.erl View File

@ -65,7 +65,7 @@ delBackup(PoolNameOrSocket, MapData) ->
% 400使list命令 HTTP 400 % 400使list命令 HTTP 400
% 404id给出了ID或ID列表ID作为备份的标识符HTTP 404 NOT FOUND % 404id给出了ID或ID列表ID作为备份的标识符HTTP 404 NOT FOUND
% 405使HTTP方法调用了list命令POSTHTTP 405 METHOD NOT ALLOWED % 405使HTTP方法调用了list命令POSTHTTP 405 METHOD NOT ALLOWED
getBackupList(PoolNameOrSocket) ->
backupList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgPost, <<"/_admin/backup/list">>). agVstCli:callAgency(PoolNameOrSocket, ?AgPost, <<"/_admin/backup/list">>).
% list热备份的一个对象组成idid唯一地标识了特定的热备份version描绘了用于创建任何单个热备份的ArangoDB的版本datetime显示了创建热备份的时间 % list热备份的一个对象组成idid唯一地标识了特定的热备份version描绘了用于创建任何单个热备份的ArangoDB的版本datetime显示了创建热备份的时间

+ 1
- 1
src/agApi/agIndexes.erl View File

@ -96,7 +96,7 @@ delIndex(PoolNameOrSocket, IndexId) ->
% 使 % 使
% %
% 200JSON对象 % 200JSON对象
getIndexList(PoolNameOrSocket, QueryPars) ->
indexList(PoolNameOrSocket, QueryPars) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/index">>, QueryPars). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/index">>, QueryPars).
% 使 % 使

+ 1
- 1
src/agApi/agTasks.erl View File

@ -16,7 +16,7 @@
% %
% HTTP 200 % HTTP 200
% ** % **
getTaskList(PoolNameOrSocket) ->
taskList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/tasks/">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/tasks/">>).
% %

+ 1
- 1
src/agApi/agTransactions.erl View File

@ -158,7 +158,7 @@ abortTransaction(PoolNameOrSocket, TransactionId) ->
% status % status
% %
% 200HTTP 200 % 200HTTP 200
getTransactionList(PoolNameOrSocket) ->
transactionList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/transaction">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/transaction">>).
% JavaScript交易的HTTP接口 % JavaScript交易的HTTP接口

+ 3
- 3
src/agApi/agUserMgr.erl View File

@ -114,11 +114,11 @@ clearUserCollAccessLevel(PoolNameOrSocket, UserName, DbName, CollName) ->
% 400访 % 400访
% 401_system 访访 % 401_system 访访
% 403访访 % 403访访
getUserDbList(PoolNameOrSocket, UserName) ->
userDbList(PoolNameOrSocket, UserName) ->
Path = <<"/_api/user/", UserName/binary, "/database/">>, Path = <<"/_api/user/", UserName/binary, "/database/">>,
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path).
getUserDbList(PoolNameOrSocket, UserName, QueryPars) ->
userDbList(PoolNameOrSocket, UserName, QueryPars) ->
Path = <<"/_api/user/", UserName/binary, "/database/">>, Path = <<"/_api/user/", UserName/binary, "/database/">>,
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path, QueryPars). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path, QueryPars).
@ -230,5 +230,5 @@ getUser(PoolNameOrSocket, UserName) ->
% 200 % 200
% 401_system 访访 % 401_system 访访
% 403访访 % 403访访
getUserList(PoolNameOrSocket) ->
userList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/user/">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/user/">>).

+ 1
- 1
src/agApi/agViews.erl View File

@ -88,7 +88,7 @@ getViewInfo(PoolNameOrSocket, ViewName) ->
% %
% %
% 200 % 200
getViewList(PoolNameOrSocket) ->
viewList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/view">>). agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/view">>).
% %

Loading…
Cancel
Save