POST dz_api/Employees/Query

职员查询

Request Information

URI Parameters

None.

Body Parameters

查询条件

EmployeeSearchCondition
NameDescriptionTypeAdditional information
keyword

关键字

string

None.

departmentIds

部门Ids

Collection of integer

None.

isShowDisabled

是否显示已停用员工

boolean

None.

pageSize

页码

integer

None.

pageIndex

页面大小

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "keyword": "sample string 1",
  "departmentIds": [
    1,
    2
  ],
  "isShowDisabled": true,
  "pageSize": 3,
  "pageIndex": 4
}

application/xml, text/xml

Sample:
<EmployeeSearchCondition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model.Settings">
  <departmentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </departmentIds>
  <isShowDisabled>true</isShowDisabled>
  <keyword>sample string 1</keyword>
  <pageIndex>4</pageIndex>
  <pageSize>3</pageSize>
</EmployeeSearchCondition>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

职员查询

EmployeeListModel
NameDescriptionTypeAdditional information
Total

记录数目

integer

None.

DataList

信息列表

Collection of EmployeeInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "DataList": [
    {
      "EmployeeId": 1,
      "UserSn": 2,
      "EmployeeNo": "sample string 3",
      "EmployeeName": "sample string 4",
      "Phone": "sample string 5",
      "DepartmentId": 6,
      "DepartmentName": "sample string 7",
      "RoleNames": "sample string 8",
      "IsEnabled": 9,
      "IsDisabled": 10,
      "IsDeleted": 11,
      "Note": "sample string 12",
      "RoleIds": "sample string 13",
      "IsActived": 14,
      "IsPA": true,
      "IsPM": true,
      "IsSA": true
    },
    {
      "EmployeeId": 1,
      "UserSn": 2,
      "EmployeeNo": "sample string 3",
      "EmployeeName": "sample string 4",
      "Phone": "sample string 5",
      "DepartmentId": 6,
      "DepartmentName": "sample string 7",
      "RoleNames": "sample string 8",
      "IsEnabled": 9,
      "IsDisabled": 10,
      "IsDeleted": 11,
      "Note": "sample string 12",
      "RoleIds": "sample string 13",
      "IsActived": 14,
      "IsPA": true,
      "IsPM": true,
      "IsSA": true
    }
  ],
  "Total": 1
}

application/xml, text/xml

Sample:
<EmployeeListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model.Settings">
  <DataList>
    <EmployeeInfo>
      <DepartmentId>6</DepartmentId>
      <DepartmentName>sample string 7</DepartmentName>
      <EmployeeId>1</EmployeeId>
      <EmployeeName>sample string 4</EmployeeName>
      <EmployeeNo>sample string 3</EmployeeNo>
      <IsActived>14</IsActived>
      <IsDeleted>11</IsDeleted>
      <IsDisabled>10</IsDisabled>
      <IsEnabled>9</IsEnabled>
      <IsPA>true</IsPA>
      <IsPM>true</IsPM>
      <IsSA>true</IsSA>
      <Note>sample string 12</Note>
      <Phone>sample string 5</Phone>
      <RoleIds>sample string 13</RoleIds>
      <RoleNames>sample string 8</RoleNames>
      <UserSn>2</UserSn>
    </EmployeeInfo>
    <EmployeeInfo>
      <DepartmentId>6</DepartmentId>
      <DepartmentName>sample string 7</DepartmentName>
      <EmployeeId>1</EmployeeId>
      <EmployeeName>sample string 4</EmployeeName>
      <EmployeeNo>sample string 3</EmployeeNo>
      <IsActived>14</IsActived>
      <IsDeleted>11</IsDeleted>
      <IsDisabled>10</IsDisabled>
      <IsEnabled>9</IsEnabled>
      <IsPA>true</IsPA>
      <IsPM>true</IsPM>
      <IsSA>true</IsSA>
      <Note>sample string 12</Note>
      <Phone>sample string 5</Phone>
      <RoleIds>sample string 13</RoleIds>
      <RoleNames>sample string 8</RoleNames>
      <UserSn>2</UserSn>
    </EmployeeInfo>
  </DataList>
  <Total>1</Total>
</EmployeeListModel>