POST api/Base/GetOrginazeTree

获取部门列表

请求参数信息

URI 参数

None.

Body 参数

请求参数,queryparam支持 1、getchild参数,true表示同步获取下级节点,false表示不获取下级节点,默认不获取下级节点 2、parentid参数,父级id,默认值为0,表示获取顶级节点

BasePageRequestModel
NameDescriptionTypeAdditional information
keyid

string

None.

querystr

string

None.

Status

integer

None.

pageindex

integer

None.

pagesize

integer

None.

queryparam

Dictionary of string [key] and string [value]

None.

sign

string

None.

Request Formats

application/json, text/json

Sample:
{
  "keyid": "sample string 1",
  "querystr": "sample string 2",
  "Status": 3,
  "pageindex": 4,
  "pagesize": 5,
  "queryparam": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "sign": "sample string 6"
}

application/xml, text/xml

Sample:
<BasePageRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JYSupply.APIApplication.Models.RequestModel">
  <sign xmlns="http://schemas.datacontract.org/2004/07/JYSupply.APIApplication.Models">sample string 6</sign>
  <Status>3</Status>
  <keyid>sample string 1</keyid>
  <pageindex>4</pageindex>
  <pagesize>5</pagesize>
  <queryparam xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </queryparam>
  <querystr>sample string 2</querystr>
</BasePageRequestModel>

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 'BasePageRequestModel'.

接口返回信息

返回信息说明

JMResponseOfViewPageModelOfTreeResponseModel
NameDescriptionTypeAdditional information
code

string

None.

msg

string

None.

data

ViewPageModelOfTreeResponseModel

None.

返回数据格式

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 'JYSupply.APIApplication.Models.ResponseModel.TreeResponseModel'. Path 'data.ModelList[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 'JYSupply.APIApplication.Models.ResponseModel.TreeResponseModel'. Path 'data.ModelList[0].children'.

application/xml

Sample:

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

text/xml

Sample:

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