POST api/Module/GetModuleTreeList

获取模块树(全量/分量)

Request Information

URI Parameters

None.

Body Parameters

ModuleTreeFilter
NameDescriptionTypeAdditional information
RootNodeId

根级节点(-1表示返回所有顶层节点)

integer

None.

CheckedNodeIds

Collection of integer

None.

SelectedNodeIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RootNodeId": 1,
  "CheckedNodeIds": [
    1,
    2
  ],
  "SelectedNodeIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<ModuleTreeFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CheckedNodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CheckedNodeIds>
  <SelectedNodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SelectedNodeIds>
  <RootNodeId>1</RootNodeId>
</ModuleTreeFilter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ModuleTreeFilter'.

Response Information

Resource Description

获取模块树(全量/分量)

Collection of ModuleTreeDTO
NameDescriptionTypeAdditional information
parentModuleId

父节点模块Id

integer

None.

parentModuleName

父节点模块名称

string

None.

name

路由名称 必须项,后面缓存页面需要用到,且这个name是唯一的

string

None.

children

孩子节点集合

Collection of ModuleTreeDTO

None.

id

integer

None.

title

string

None.

expand

boolean

None.

disabled

boolean

None.

disableCheckbox

boolean

None.

selected

boolean

None.

checked

boolean

None.

indeterminate

boolean

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'DTO.ModuleTreeDTO'. Path '[0].children'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'DTO.ModuleTreeDTO'. Path '[0].children'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “DTO.ModuleTreeDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “DTO.ModuleTreeDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。