查询部门列表

更新时间: 2024/04/02 17:59:25
  • url

    https://www.cloudroom.com/CLOUDROOM-SERVER/v2/department?departmentId={departmentId}&current={current}&size={size}

  • 请求方式GET

  • 请求参数

    参数名 必填 类型 描述
    departmentId Long 部门 ID(部门 ID 为空时输出全部部门列表)
    current Integer 当前页码(默认为1,超出范围使用默认值)
    size Integer 每页数量(默认为20,最大值为100,超出范围使用默认值)
  • 请求参数示例

    https://www.cloudroom.com/CLOUDROOM-SERVER/v2/department?current=1&size=20&departmentId=1
    
  • 返回参数

    参数名 类型 描述
    total Integer 总数
    remaining Integer 是否还有未拉取的数据(0:否;1:是)
    records Object[] 部门对象列表
    • 部门对象
    参数名 类型 描述
    id Long 部门ID
    name String 部门名称
    parentId Long 上级部门ID
    fullPath String 部门全称
    fullIds String 部门全称ID
    level Integer 部门级别
  • 返回参数示例

    {
        "total": 1,
        "remaining": 0,
        "records": [
            {
                "id": 1668,
                "name": "web",
                "parentId": 1,
                "fullPath": "公司 > web",
                "fullIds": "1,1668",
                "level": 2
            }
        ]  
    }