POST api/DingDingProgram/GetDepartDataList

部门数据

Request Information

URI Parameters

None.

Body Parameters

GetDepartDataListInput
NameDescriptionTypeAdditional information
d_name

部门名称

string

None.

userID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "d_name": "sample string 1",
  "userID": "sample string 2"
}

application/xml, text/xml

Sample:
<GetDepartDataListInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.DingDingModels">
  <userID>sample string 2</userID>
  <d_name>sample string 1</d_name>
</GetDepartDataListInput>

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

Response Information

Resource Description

Collection of DepartmentData
NameDescriptionTypeAdditional information
id

部门id

integer

None.

d_name

部门名称

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "d_name": "sample string 2"
  },
  {
    "id": 1,
    "d_name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDepartmentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models">
  <DepartmentData>
    <d_name>sample string 2</d_name>
    <id>1</id>
  </DepartmentData>
  <DepartmentData>
    <d_name>sample string 2</d_name>
    <id>1</id>
  </DepartmentData>
</ArrayOfDepartmentData>