1.URL

http://124.223.60.234:8080/system/asset/organization/queryLoginUserOrganizationTree

2.请求参数

2.1请求头

token:对应登录验证成功后,data里面对应的tokenId

2.2.参数示例

{
    "id":"199D9E6F70114AD3A36ACA6A9742B66D"
}

2.3.参数说明

字段 类型 说明 是否必须
id String 公司唯一标识 Y

3.接口应答

3.1.返回示例

{
    "code": 200,
    "message": "Operation succeeded",
    "data": [
        {
            "id": "F940B79790004404AAC277418FC71C5E",
            "name": "云息通信",
            "fatherId": "",
            "child": [
                {
                    "id": "199D9E6F70114AD3A36ACA6A9742B66D",
                    "name": "国内客户",
                    "fatherId": "F940B79790004404AAC277418FC71C5E",
                    "child": [
                        {
                            "id": "8F2744CF926044CF8E5B44D2BF7D0BF0",
                            "name": "亿元通讯",
                            "fatherId": "199D9E6F70114AD3A36ACA6A9742B66D"
                        }
                    ]
                },
                {
                    "id": "506CF6915C4447F692F293CF3D35906A",
                    "name": "test001",
                    "fatherId": "F940B79790004404AAC277418FC71C5E"
                },
                {
                    "id": "5E44D7342FAC43DF8169E6DF87D3C6AF",
                    "name": "sample1234567",
                    "fatherId": "F940B79790004404AAC277418FC71C5E"
                },
                {
                    "id": "622E4BF0EF254EA2B5D5C82B1C700A56",
                    "name": "sample12345678",
                    "fatherId": "F940B79790004404AAC277418FC71C5E"
                }
            ]
        }
    ]
}

3.2.返回结果说明

字段 类型 说明
code int 返回状态
message String 返回结果描述
data object 返回结果体

data说明

字段 类型 说明
id String 节点唯一标识
fatherId String 上级节点唯一标识
name String 当前节点对应的名称
child object 下级节点集合

4.请求示例

作者:admin  创建时间:2023-04-16 19:26
最后编辑:admin  更新时间:2025-04-23 17:26