GET /admin/tenants/{id}/departments
查询指定租户下的所有部门信息,支持构建组织架构树
租户服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
租户ID |
Referenced Schemas
dto.DepartmentListResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
array of
See dto.DepartmentResponse |
No |
|
|
|
message |
string |
No |
|
|
|
dto.DepartmentResponse
租户部门信息
| Field | Type | Required | Example | Constraints | Description |
code |
string |
No |
RD |
|
部门编码 |
created_at |
string |
No |
2026-01-15T10:30:00Z |
|
创建时间 |
department_id |
string |
No |
dept_001 |
|
部门ID |
manager_id |
string |
No |
usr_001 |
|
负责人ID |
members_count |
integer |
No |
25 |
|
成员数量 |
name |
string |
No |
技术研发部 |
|
部门名称 |
parent_id |
string |
No |
dept_root |
|
父部门ID |
tenant_id |
string |
No |
tnt_abc123 |
|
租户ID |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|