mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-02 04:08:54 +08:00
fix: chane to sumary
This commit is contained in:
parent
72bc987177
commit
4aecbfc3ff
@ -425,10 +425,10 @@ tree() ->
|
|||||||
Tree1 =
|
Tree1 =
|
||||||
lists:foldl(fun(Value, Acc) ->
|
lists:foldl(fun(Value, Acc) ->
|
||||||
lists:foldl(fun(Value1, Acc1) ->
|
lists:foldl(fun(Value1, Acc1) ->
|
||||||
lists:foldl(fun(#{<<"description">> := PathDescription, <<"operationId">> := OperationId, <<"tags">> := [PathTag | _]}, Acc2) ->
|
lists:foldl(fun(#{<<"summary">> := Summary, <<"operationId">> := OperationId, <<"tags">> := [PathTag | _]}, Acc2) ->
|
||||||
case maps:find(PathTag, Acc2) of
|
case maps:find(PathTag, Acc2) of
|
||||||
{ok, #{<<"children">> := Children, <<"target">> := TagTarget} = V} ->
|
{ok, #{<<"children">> := Children, <<"target">> := TagTarget} = V} ->
|
||||||
Path = #{<<"label">> => PathDescription, <<"target">> => <<TagTarget/binary, "/", OperationId/binary>>},
|
Path = #{<<"label">> => Summary, <<"target">> => <<TagTarget/binary, "/", OperationId/binary>>},
|
||||||
Acc2#{PathTag => V#{<<"children">> => Children ++ [Path]}};
|
Acc2#{PathTag => V#{<<"children">> => Children ++ [Path]}};
|
||||||
error ->
|
error ->
|
||||||
Acc2
|
Acc2
|
||||||
|
Loading…
Reference in New Issue
Block a user