A AuthMS API Wiki API Reference iam.tianv.com →

GET /admin/tenants/{id}/departments

查询指定租户下的所有部门信息,支持构建组织架构树

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID

Responses

StatusDescriptionSchema
200部门列表dto.DepartmentListResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DepartmentListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data array of

See dto.DepartmentResponse

No
message string No

dto.DepartmentResponse

租户部门信息

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No