跳转到主要内容
GET
/
organization
/
{organizationId}
/
department
/
{departmentId}
cURL
curl --request GET \
  --url http://127.0.0.1:3000/api/organization/{organizationId}/department/{departmentId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "hasChildren": true,
  "parentId": "<string>",
  "path": [
    "<string>"
  ],
  "pathName": [
    "<string>"
  ]
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

organizationId
string
必填
departmentId
string
必填

响应

200 - application/json

Get department successfully

id
string
必填
name
string
必填
hasChildren
boolean
必填
parentId
string
path
string[]
pathName
string[]
Last modified on December 10, 2025