GET api/Department/GetList?parentId={parentId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| parentId | integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
ServerResponseOfListOfsys_dept| Name | Description | Type | Additional information |
|---|---|---|---|
| Entity | Collection of sys_dept |
None. |
|
| errcode |
返回码 |
integer |
None. |
| errmsg |
对返回码的文本描述内容 |
string |
None. |
| ReturnValue |
返回值 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Entity": [
{
"id": 1,
"title": "sample string 2",
"parentid": 1,
"status": 3,
"addtime": "2026-03-26T14:29:16.5196613+08:00"
},
{
"id": 1,
"title": "sample string 2",
"parentid": 1,
"status": 3,
"addtime": "2026-03-26T14:29:16.5196613+08:00"
}
],
"errcode": 1,
"errmsg": "sample string 2",
"ReturnValue": {}
}
multipart/form-data
Sample:
<ServerResponseOfArrayOfsys_dept_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_dept><d2p1:addtime>2026-03-26T14:29:16.5196613+08:00</d2p1:addtime><d2p1:id>1</d2p1:id><d2p1:parentid>1</d2p1:parentid><d2p1:status>3</d2p1:status><d2p1:title>sample string 2</d2p1:title></d2p1:sys_dept><d2p1:sys_dept><d2p1:addtime>2026-03-26T14:29:16.5196613+08:00</d2p1:addtime><d2p1:id>1</d2p1:id><d2p1:parentid>1</d2p1:parentid><d2p1:status>3</d2p1:status><d2p1:title>sample string 2</d2p1:title></d2p1:sys_dept></_x003C_Entity_x003E_k__BackingField></ServerResponseOfArrayOfsys_dept_PZC5QaEm>