GET api/User/GetListByRole?roleid={roleid}&deptid={deptid}&status={status}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
roleid

integer

Required

deptid

integer

Default value is 0

status

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

ServerResponseOfListOfsys_admin
NameDescriptionTypeAdditional information
Entity

Collection of sys_admin

None.

errcode

返回码

integer

None.

errmsg

对返回码的文本描述内容

string

None.

ReturnValue

返回值

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Entity": [
    {
      "id": 1,
      "username": "sample string 2",
      "userpwd": "sample string 3",
      "roleid": 4,
      "truename": "sample string 5",
      "deptid": 6,
      "phoneno": "sample string 7",
      "status": 8,
      "addtime": "2026-03-26T14:28:25.2849777+08:00"
    },
    {
      "id": 1,
      "username": "sample string 2",
      "userpwd": "sample string 3",
      "roleid": 4,
      "truename": "sample string 5",
      "deptid": 6,
      "phoneno": "sample string 7",
      "status": 8,
      "addtime": "2026-03-26T14:28:25.2849777+08:00"
    }
  ],
  "errcode": 1,
  "errmsg": "sample string 2",
  "ReturnValue": {}
}

multipart/form-data

Sample:
<ServerResponseOfArrayOfsys_admin_PZC5QaEm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Easyman.Api.Models"><_x003C_ReturnValue_x003E_k__BackingField /><_x003C_errcode_x003E_k__BackingField>1</_x003C_errcode_x003E_k__BackingField><_x003C_errmsg_x003E_k__BackingField>sample string 2</_x003C_errmsg_x003E_k__BackingField><_x003C_Entity_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Easyman.Model"><d2p1:sys_admin><d2p1:addtime>2026-03-26T14:28:25.2849777+08:00</d2p1:addtime><d2p1:deptid>6</d2p1:deptid><d2p1:id>1</d2p1:id><d2p1:phoneno>sample string 7</d2p1:phoneno><d2p1:roleid>4</d2p1:roleid><d2p1:status>8</d2p1:status><d2p1:truename>sample string 5</d2p1:truename><d2p1:username>sample string 2</d2p1:username><d2p1:userpwd>sample string 3</d2p1:userpwd></d2p1:sys_admin><d2p1:sys_admin><d2p1:addtime>2026-03-26T14:28:25.2849777+08:00</d2p1:addtime><d2p1:deptid>6</d2p1:deptid><d2p1:id>1</d2p1:id><d2p1:phoneno>sample string 7</d2p1:phoneno><d2p1:roleid>4</d2p1:roleid><d2p1:status>8</d2p1:status><d2p1:truename>sample string 5</d2p1:truename><d2p1:username>sample string 2</d2p1:username><d2p1:userpwd>sample string 3</d2p1:userpwd></d2p1:sys_admin></_x003C_Entity_x003E_k__BackingField></ServerResponseOfArrayOfsys_admin_PZC5QaEm>