GET api/EmpManage/GetDeptEmp?strDeptIds={strDeptIds}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
strDeptIds

string

Required

Body Parameters

None.

Response Information

Resource Description

BaseResponseOfListOfEmpDto
NameDescriptionTypeAdditional information
data

Collection of EmpDto

None.

msg

string

None.

code

integer

None.

total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "id": 1,
      "real_name": "sample string 2",
      "emp_code": "sample string 3",
      "dept_id": 4,
      "dept_name": "sample string 5",
      "position_name": "sample string 6"
    },
    {
      "id": 1,
      "real_name": "sample string 2",
      "emp_code": "sample string 3",
      "dept_id": 4,
      "dept_name": "sample string 5",
      "position_name": "sample string 6"
    }
  ],
  "msg": "sample string 1",
  "code": 2,
  "total": 3
}

application/xml, text/xml

Sample:
<BaseResponseOfArrayOfEmpDtogLTqVTfs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI">
  <code>2</code>
  <msg>sample string 1</msg>
  <total>3</total>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel">
    <d2p1:EmpDto>
      <d2p1:dept_id>4</d2p1:dept_id>
      <d2p1:dept_name>sample string 5</d2p1:dept_name>
      <d2p1:emp_code>sample string 3</d2p1:emp_code>
      <d2p1:id>1</d2p1:id>
      <d2p1:position_name>sample string 6</d2p1:position_name>
      <d2p1:real_name>sample string 2</d2p1:real_name>
    </d2p1:EmpDto>
    <d2p1:EmpDto>
      <d2p1:dept_id>4</d2p1:dept_id>
      <d2p1:dept_name>sample string 5</d2p1:dept_name>
      <d2p1:emp_code>sample string 3</d2p1:emp_code>
      <d2p1:id>1</d2p1:id>
      <d2p1:position_name>sample string 6</d2p1:position_name>
      <d2p1:real_name>sample string 2</d2p1:real_name>
    </d2p1:EmpDto>
  </data>
</BaseResponseOfArrayOfEmpDtogLTqVTfs>