文档中心 > API类目 > 智慧园区API

alibaba.campus.space.unit.getbyid (根据ID查询指定空间单元信息)

根据ID查询指定空间单元信息 HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService HSF方法名称:getById

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 WorkBenchContext 必须 空间单元ID
  • └ campus_code
  • String
  • 可选
  • ""
  • ""
  • └ company_id
  • Number
  • 可选
  • 1
  • ""
  • └ campus_id
  • Number
  • 必须
  • 100002
  • 园区ID
param1 Number 可选 49307 空间单元ID

响应参数

名称 类型 示例值 描述
result PojoResult {} result
  • content
  • PoiInfo
  • {}
  • content
  • space_groups
  • SpaceGroup []
  • []
  • spaceGroups
  • └ is_delete
  • Boolean
  • false
  • 是否删除
  • └ code
  • String
  • ""
  • 分组编码
  • └ floor_name
  • String
  • ""
  • 楼层名称
  • └ floor_id
  • Number
  • 1
  • 楼层id
  • └ description
  • String
  • ""
  • 描述
  • └ building_name
  • String
  • ""
  • 楼宇名称
  • └ building_id
  • Number
  • 1
  • 楼宇id
  • └ big_type_name
  • String
  • ""
  • 大类名称
  • └ big_type_id
  • Number
  • 1
  • 大类id
  • └ type_code
  • String
  • ""
  • 分类编码
  • └ type_name
  • String
  • ""
  • 分类名称
  • └ type_id
  • Number
  • 1
  • 分类id
  • └ campus_name
  • String
  • ""
  • 园区名称
  • └ campus_id
  • Number
  • 1
  • 园区id
  • └ name
  • String
  • ""
  • 分组名称
  • └ modifier
  • String
  • ""
  • 修改者
  • └ creator
  • String
  • ""
  • 创建者
  • └ gmt_modified
  • Date
  • 2017-11-11
  • 修改时间
  • └ gmt_create
  • Date
  • 2017-11-11
  • 创建时间
  • └ id
  • Number
  • 1
  • id
  • └ code
  • String
  • ""
  • 业务属性id
  • └ category
  • Number
  • 1
  • 空间种类,1室内,2室外,3 逻辑
  • └ area
  • String
  • areaStr
  • └ is_delete
  • Boolean
  • false
  • 是否删除,默认0表示未删除
  • └ status
  • Number
  • 1
  • 状态
  • └ company_id
  • Number
  • 1
  • 公司id
  • └ floor_name
  • String
  • ""
  • 楼层名称
  • └ floor_id
  • Number
  • 1
  • 楼层id
  • └ building_name
  • String
  • ""
  • 楼宇名称
  • └ building_id
  • Number
  • 1
  • 楼宇id
  • └ campus_name
  • String
  • ""
  • 园区名称
  • └ campus_code
  • String
  • ""
  • 园区编码
  • └ campus_id
  • Number
  • 1
  • 园区id
  • └ type_name
  • String
  • ""
  • 分类名称
  • └ type_code
  • String
  • ""
  • 分类编码
  • └ type_id
  • Number
  • 1
  • 分类id
  • └ height
  • String
  • heightStr
  • └ gmt_modified
  • Date
  • 2017-11-11
  • 修改时间
  • └ modifier
  • String
  • ""
  • 修改者
  • └ creator
  • String
  • ""
  • 创建者
  • └ gmt_create
  • Date
  • 2017-11-11
  • 修改时间
  • └ id
  • Number
  • 1
  • 空间单元id
  • └ name
  • String
  • ""
  • 空间单元名称
  • └ ft_id
  • String
  • 1
  • 地图图元id
  • └ geo_floor_id
  • Number
  • 1
  • 高德楼层id
  • └ uuid
  • String
  • ss
  • uuid
  • central
  • Point
  • {}
  • 中心点
  • └ lng
  • String
  • 120.000
  • 经度
  • └ lat
  • String
  • 30.000
  • 纬度
  • └ category_name
  • String
  • 室内
  • 室内/室外/逻辑/虚拟
  • └ request_id
  • String
  • “”
  • 请求id
  • └ error_code
  • String
  • “”
  • 错误编码
  • └ error_msg
  • String
  • “”
  • 错误信息
  • └ success
  • Boolean
  • “”
  • 是否成功
  • └ error_level
  • String
  • “”
  • 错误等级

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusSpaceUnitGetbyidRequest req = new AlibabaCampusSpaceUnitGetbyidRequest();
AlibabaCampusSpaceUnitGetbyidRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceUnitGetbyidRequest.WorkBenchContext();
obj1.setCampusCode("\"\"");
obj1.setCompanyId(1L);
obj1.setCampusId(100002L);
req.setParam0(obj1);
req.setParam1(49307L);
AlibabaCampusSpaceUnitGetbyidResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_unit_getbyid_response>
    <result>
        <content>
            <space_groups>
                <space_group>
                    <is_delete>false</is_delete>
                    <code>&quot;&quot;</code>
                    <floor_name>&quot;&quot;</floor_name>
                    <floor_id>1</floor_id>
                    <description>&quot;&quot;</description>
                    <building_name>&quot;&quot;</building_name>
                    <building_id>1</building_id>
                    <big_type_name>&quot;&quot;</big_type_name>
                    <big_type_id>1</big_type_id>
                    <type_code>&quot;&quot;</type_code>
                    <type_name>&quot;&quot;</type_name>
                    <type_id>1</type_id>
                    <campus_name>&quot;&quot;</campus_name>
                    <campus_id>1</campus_id>
                    <name>&quot;&quot;</name>
                    <modifier>&quot;&quot;</modifier>
                    <creator>&quot;&quot;</creator>
                    <gmt_modified>2017-11-11</gmt_modified>
                    <gmt_create>2017-11-11</gmt_create>
                    <id>1</id>
                </space_group>
            </space_groups>
            <code>&quot;&quot;</code>
            <category>1</category>
            <area></area>
            <is_delete>false</is_delete>
            <status>1</status>
            <company_id>1</company_id>
            <floor_name>&quot;&quot;</floor_name>
            <floor_id>1</floor_id>
            <building_name>&quot;&quot;</building_name>
            <building_id>1</building_id>
            <campus_name>&quot;&quot;</campus_name>
            <campus_code>&quot;&quot;</campus_code>
            <campus_id>1</campus_id>
            <type_name>&quot;&quot;</type_name>
            <type_code>&quot;&quot;</type_code>
            <type_id>1</type_id>
            <height></height>
            <gmt_modified>2017-11-11</gmt_modified>
            <modifier>&quot;&quot;</modifier>
            <creator>&quot;&quot;</creator>
            <gmt_create>2017-11-11</gmt_create>
            <id>1</id>
            <name>&quot;&quot;</name>
            <ft_id>1</ft_id>
            <geo_floor_id>1</geo_floor_id>
            <uuid>ss</uuid>
            <central>
                <lng>120.000</lng>
                <lat>30.000</lat>
            </central>
            <category_name>室内</category_name>
        </content>
        <request_id>“”</request_id>
        <error_code>“”</error_code>
        <error_msg>“”</error_msg>
        <success>“”</success>
        <error_level>“”</error_level>
    </result>
</alibaba_campus_space_unit_getbyid_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部