Query Organization Members
Endpoint Path
http
GET /api/open/organization/:id/membersRequest Parameters
| Field | Type | Required | Description | Constraints | Example |
|---|---|---|---|---|---|
| id | int | Yes | Organization (department) ID | Path parameter; must be > 0 | 2001 |
| p | int | No | Page number | Default 1 | 1 |
| page_size | int | No | Page size | Default 10; max 1000 | 20 |
Request Example
json
GET 'https://neolink.com/backend/api/open/organization/2001/members?p=1&page_size=20'Return Information
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| success | bool | Yes | Request success indicator | Fixed value |
| message | string | Yes | Error message (empty if successful) | Fixed value |
| data | PageInfo | Yes | Paginated data object | See table below |
PageInfo Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| page | int | Yes | Current page number | |
| page_size | int | Yes | Items per page | |
| total | int | Yes | Total item count | |
| items | []MemberItem | Yes | Member list | See table below |
MemberItem Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| member_id | int | Yes | Member ID | For member_id input of log and related APIs |
| organization_id | int | Yes | Organization ID | Same as path id |
| username | string | Yes | Username | |
| mobile | string | Yes | Mobile number | Masked, e.g. 138****0000 |
Response Example
json
Success
{
"success": true,
"message": "",
"data": {
"page": 1,
"page_size": 20,
"total": 2,
"items": [
{
"member_id": 5001,
"organization_id": 2001,
"username": "alice",
"mobile": "138****0000"
},
{
"member_id": 5002,
"organization_id": 2001,
"username": "bob",
"mobile": "139****1234"
}
]
}
}
Failure (organization not found / no permission, etc.)
{
"success": false,
"message": "Department not found"
}