GET /admin/tenants/{tenant_id}/departments

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

租户服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
tenant_id path string 是 租户ID

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-tenant/internal/handler/dto.DepartmentListResponse

字段类型必填示例约束描述
code integer 否
data array of

参见 service-tenant/internal/handler/dto.DepartmentResponse

否
message string 否

service-tenant/internal/handler/dto.DepartmentResponse

租户部门信息

字段类型必填示例约束描述
code string 否 RD 部门编码
created_at string 否 2026-01-15T10:30:00Z 创建时间
department_id string 否 dept_001 部门ID
manager_id string 否 usr_001 负责人ID
members_count integer 否 25 成员数量
name string 否 技术研发部 部门名称
parent_id string 否 dept_root 父部门ID
tenant_id string 否 tnt_abc123 租户ID