{
  "openapi": "3.0.3",
  "info": {
    "title": "部门管理 - 获取部门关联用户",
    "version": "1.0.0",
    "description": "部门管理相关接口文档"
  },
  "paths": {
    "/api/departments/{id}/users": {
      "get": {
        "summary": "获取部门关联用户",
        "description": "获取指定部门关联的用户",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "部门ID"
          }
        ],
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "success": {
                    "code": "0000",
                    "message": "获取成功",
                    "data": {
                      "id": 1,
                      "code": "DEP0001",
                      "name": "研发部",
                      "organizationId": "ORG0001",
                      "status": 1,
                      "createTime": "2025-01-01T10:00:00.000Z"
                    }
                  },
                  "failure": {
                    "code": "4040",
                    "message": "部门不存在",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}