部门

获取部门

GET /org/{type}

权限

  • 需要认证

请求参数

名称 位置 类型 必选 说明
type path string true 'userManageOrg'管理的组织机构,用于设置所属部门, 'resourcePermissionOrg'资源发布范围加入范围,人员的管理范围
settingOrgIds query string false 类型为'resourcePermissionOrg'表示资源已经设置的数据

响应

[
    {
        "id": "1",
        "name": "测试企业微信",
        "parentId": "0",
        "depth": "1",
        "seq": "0",
        "code": "FullSite",
        "orgCode": "1.",
        "selectable": true,
        "disableCheckbox": false,
        "nodes": [
            {
                "id": "1046",
                "name": "技术部",
                "parentId": "1",
                "depth": "2",
                "seq": "0",
                "code": "dingtalk2",
                "orgCode": "1.1046.",
                "selectable": true,
                "disableCheckbox": false,
                "nodes": [
                    {
                        "id": "1050",
                        "name": "sql审计",
                        "parentId": "1046",
                        "depth": "3",
                        "seq": "0",
                        "code": "dingtalk8",
                        "orgCode": "1.1046.1050.",
                        "selectable": true,
                        "disableCheckbox": false,
                        "nodes": []
                    }
                ]
            },
            {
                "id": "1047",
                "name": "销售部1",
                "parentId": "1",
                "depth": "2",
                "seq": "0",
                "code": "dingtalk4",
                "orgCode": "1.1047.",
                "selectable": true,
                "disableCheckbox": false,
                "nodes": [
                    {
                        "id": "1049",
                        "name": "催收部",
                        "parentId": "1047",
                        "depth": "3",
                        "seq": "0",
                        "code": "dingtalk6",
                        "orgCode": "1.1047.1049.",
                        "selectable": true,
                        "disableCheckbox": false,
                        "nodes": []
                    }
                ]
            },
            {
                "id": "1048",
                "name": "质控部",
                "parentId": "1",
                "depth": "2",
                "seq": "0",
                "code": "dingtalk5",
                "orgCode": "1.1048.",
                "selectable": true,
                "disableCheckbox": false,
                "nodes": []
            },
            {
                "id": "1051",
                "name": "市场部",
                "parentId": "1",
                "depth": "2",
                "seq": "0",
                "code": "dingtalk10",
                "orgCode": "1.1051.",
                "selectable": true,
                "disableCheckbox": false,
                "nodes": []
            },
            {
                "id": "1052",
                "name": "132312",
                "parentId": "1",
                "depth": "2",
                "seq": "0",
                "code": "dingtalk14",
                "orgCode": "1.1052.",
                "selectable": true,
                "disableCheckbox": false,
                "nodes": [
                    {
                        "id": "1053",
                        "name": "32423",
                        "parentId": "1052",
                        "depth": "3",
                        "seq": "0",
                        "code": "dingtalk13",
                        "orgCode": "1.1052.1053.",
                        "selectable": true,
                        "disableCheckbox": false,
                        "nodes": []
                    }
                ]
            },
            {
                "id": "1054",
                "name": "楚氏部门",
                "parentId": "1",
                "depth": "2",
                "seq": "0",
                "code": "CSBM",
                "orgCode": "1.1054.",
                "selectable": true,
                "disableCheckbox": false,
                "nodes": [
                    {
                        "id": "1055",
                        "name": "楚家军部门",
                        "parentId": "1054",
                        "depth": "3",
                        "seq": "0",
                        "code": "CJJBM",
                        "orgCode": "1.1054.1055.",
                        "selectable": true,
                        "disableCheckbox": false,
                        "nodes": []
                    }
                ]
            }
        ]
    }
]

字段说明

名称 类型 必选 约束 说明
» id integer(int64) false none none
» seq integer false none none
» code string false none none
» orgCode string false none none
» selectable boolean false none 是否可选中
» name string false none none
» depth integer(int64) false none 层级
» nodes object false none none
»» id integer(int64) false none none
»» seq integer false none none
»» code string false none none
»» orgCode string false none none
»» selectable boolean false none 是否可选中
»» name string false none none
»» depth integer(int64) false none 层级
»» nodes object false none none

results matching ""

    No results matching ""