瀏覽代碼

ft: 代码调整

master
SisMaker 3 年之前
父節點
當前提交
65a0075aad
共有 2 個檔案被更改,包括 19 行新增18 行删除
  1. +3
    -3
      src/agApi/agEdges.erl
  2. +16
    -15
      src/agApi/agGraphs.erl

+ 3
- 3
src/agApi/agEdges.erl 查看文件

@ -28,7 +28,7 @@
%
% GET /_api/edges/{collection-id}
%
% collection-idID或者边集合
% collection-id
%
% vertexID
% direction in or out
@ -37,6 +37,6 @@
% 200
% 400
% 404
getEdges(PoolNameOrSocket, CollName, QueryPars) ->
Path = <<"/_api/edges/", CollName/binary>>,
getEdges(PoolNameOrSocket, EdgesCollName, QueryPars) ->
Path = <<"/_api/edges/", EdgesCollName/binary>>,
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, Path, QueryPars).

src/agApi/agGeneralGraphs.erl → src/agApi/agGraphs.erl 查看文件

@ -1,4 +1,4 @@
-module(agGeneralGraphs).
-module(agGraphs).
-include("eArango.hrl").
-compile(inline).
@ -18,16 +18,19 @@
% errortruefalse
% code
%
% graph
% name
% edgeDefinitions
% orphanCollections
% numberOfShards
% _idID值
% _rev
% ReplicationFactor使
% isSmartSmartGraph
% smartGraphAttribute
% graphs
% graph :
% name :
% edgeDefinitions
% orphanCollections
% numberOfShards
% _id id
% _rev
% replicationFactor"satellite" SmartGraph的字符串
% isSmart SmartGraph
% isDisjoint Disjoint SmartGraph
% smartGraphAttributeSmartGraph
% isSatellite SatelliteGraph
graphList(PoolNameOrSocket) ->
agVstCli:callAgency(PoolNameOrSocket, ?AgGet, <<"/_api/gharial">>).
@ -77,12 +80,10 @@ graphList(PoolNameOrSocket) ->
% errorNumArangoDB错误号
% errorMessage
newGraph(PoolNameOrSocket, MapData) ->
BodyStr = eVPack:encodeBin(MapData),
agVstCli:callAgency(PoolNameOrSocket, ?AgPost, <<"/_api/gharial">>, ?AgDefQuery, ?AgDefHeader, BodyStr).
agVstCli:callAgency(PoolNameOrSocket, ?AgPost, <<"/_api/gharial">>, ?AgDefQuery, ?AgDefHeader, eVPack:encodeBin(MapData)).
newGraph(PoolNameOrSocket, MapData, QueryPars) ->
BodyStr = eVPack:encodeBin(MapData),
agVstCli:callAgency(PoolNameOrSocket, ?AgPost, <<"/_api/gharial">>, QueryPars, ?AgDefHeader, BodyStr).
agVstCli:callAgency(PoolNameOrSocket, ?AgPost, <<"/_api/gharial">>, QueryPars, ?AgDefHeader, eVPack:encodeBin(MapData)).
%
% GET /_api/gharial/{graph}

Loading…
取消
儲存