查询空间用途树

简要描述
  • 查询空间用途树
请求URL
  • 192.168.11.145/space/spaceuse/tree
请求方式
  • GET
参数
返回示例
{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "delFlag": "0",
            "remark": null,
            "createTime": "2020-09-10 16:19:25",
            "updateTime": "2020-10-09 15:44:39",
            "createBy": 2,
            "updateBy": 0,
            "id": 1,
            "tenantId": 44,
            "code": null,
            "name": "照明用途",
            "indexCode": "",
            "parentId": 0,
            "parentName": null,
            "createByUserName": "梁云",
            "children": [
                {
                    "delFlag": "0",
                    "remark": null,
                    "createTime": "2020-09-10 18:55:32",
                    "updateTime": "2020-10-09 15:44:39",
                    "createBy": 2,
                    "updateBy": null,
                    "id": 2,
                    "tenantId": 44,
                    "code": null,
                    "name": "路灯照明",
                    "indexCode": "1-",
                    "parentId": 1,
                    "parentName": "照明用途",
                    "createByUserName": "梁云",
                    "children": null
                },
                {
                    "delFlag": "0",
                    "remark": null,
                    "createTime": "2020-09-10 16:19:25",
                    "updateTime": "2020-10-09 15:44:39",
                    "createBy": 2,
                    "updateBy": 0,
                    "id": 3,
                    "tenantId": 44,
                    "code": null,
                    "name": "车库照明",
                    "indexCode": "1-",
                    "parentId": 1,
                    "parentName": "照明用途",
                    "createByUserName": "梁云",
                    "children": [
                        {
                            "delFlag": "0",
                            "remark": null,
                            "createTime": "2020-09-10 18:58:38",
                            "updateTime": "2020-10-09 15:44:39",
                            "createBy": 2,
                            "updateBy": null,
                            "id": 4,
                            "tenantId": 44,
                            "code": null,
                            "name": "一区车库照明",
                            "indexCode": "1-3-",
                            "parentId": 3,
                            "parentName": "车库照明",
                            "createByUserName": "梁云",
                            "children": null
                        },
                        {
                            "delFlag": "0",
                            "remark": "描述",
                            "createTime": "2020-10-10 09:24:11",
                            "updateTime": "2020-10-10 09:24:11",
                            "createBy": 2,
                            "updateBy": null,
                            "id": 5,
                            "tenantId": 44,
                            "code": null,
                            "name": "一区车库照明",
                            "indexCode": "1-3-",
                            "parentId": 3,
                            "parentName": "车库照明",
                            "createByUserName": "梁云",
                            "children": null
                        }
                    ]
                }
            ]
        }
    ]
}
返回参数说明
参数名 类型 说明
code Integer 状态码, 0:成功;其他:异常
msg String 描述信息
data object 返回数据
delFlag String 删除标识0:未删除 1:删除
remark String 描述
createTime String 创建时间
updateTime String 更新时间
createBy Integer 创建人ID
createByName String 创建人名称
updateBy Integer 更新人ID
id Integer ID
tenantId Integer 租户ID
name String 名称
code String 编码
indexCode String 索引列
parentId String 上级ID
parentName String 上级名称
children Array 下级用途
备注