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

alibaba.campus.space.group.getlist (多条件查询空间分组信息)

多条件查询空间分组信息 HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService HSF方法名称:getList

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 WorkBenchContext 可选 查询条件封装
  • └ campus_code
  • String
  • 可选
  • ""
  • ""
  • └ company_id
  • Number
  • 可选
  • 1
  • 公司ID
  • └ campus_id
  • Number
  • 必须
  • 100002
  • 园区ID
param1 SpaceGroupQuery 可选 查询参数封装
  • └ limit
  • Number
  • 可选
  • 10
  • 分页限制
  • └ ids
  • Number []
  • 可选
  • [1]
  • 分组ID集合
  • └ group_id
  • Number
  • 可选
  • 1
  • 分组ID
  • └ floor_id
  • Number
  • 可选
  • 1
  • 楼层ID
  • └ current_page
  • Number
  • 可选
  • 1
  • 当前页码
  • └ company_id
  • Number
  • 可选
  • 1
  • 公司ID
  • └ type_id
  • Number
  • 可选
  • 1
  • 类别ID
  • └ campus_id
  • Number
  • 必须
  • 100002
  • 园区ID
  • └ building_id
  • Number
  • 可选
  • 1
  • 楼宇ID
  • └ type_code
  • String
  • 可选
  • 071207
  • 类型编码
  • └ code
  • String
  • 可选
  • 8-21
  • 空间分组编码
  • └ name
  • String
  • 可选
  • 8
  • 分组名称
  • └ name_or_code
  • String
  • 可选
  • 8-2
  • 分组名称或者code

响应参数

名称 类型 示例值 描述
result ListResult {} result
  • contents
  • SpaceGroup []
  • []
  • content
  • └ building_name
  • String
  • ""
  • buildingName
  • └ building_id
  • Number
  • 1
  • buildingId
  • └ name
  • String
  • ""
  • name
  • └ big_type_name
  • String
  • ""
  • 空间分组大类别
  • └ type_code
  • String
  • ""
  • 空间分组类别
  • └ big_type_id
  • Number
  • 1
  • 空间分组大类别
  • └ id
  • Number
  • 1
  • id
  • └ type_name
  • String
  • ""
  • typeName
  • └ campus_name
  • String
  • ""
  • campusName
  • └ type_id
  • Number
  • 1
  • 空间分组类别
  • └ campus_id
  • Number
  • 100002
  • campusId
  • └ modifier
  • String
  • ""
  • modifier
  • └ creator
  • String
  • ""
  • creator
  • └ gmt_modified
  • Date
  • 2017-11-11
  • gmtModified
  • └ gmt_create
  • Date
  • 2017-11-11
  • gmtCreate
  • └ floor_name
  • String
  • ""
  • floorName
  • └ floor_id
  • Number
  • 1
  • floorId
  • └ description
  • String
  • ""
  • description
  • type_wrap
  • PoiTypeWrap
  • {}
  • 空间类型包装
  • └ is_delete
  • Boolean
  • false
  • isDelete
  • └ description
  • String
  • ""
  • description
  • └ full_name
  • String
  • ""
  • fullName
  • └ name
  • String
  • ""
  • name
  • └ code
  • String
  • ""
  • code
  • └ second_type_name
  • String
  • ""
  • secondTypeName
  • └ second_type_code
  • String
  • ""
  • secondTypeCode
  • └ id
  • Number
  • 1
  • id
  • └ second_type_id
  • Number
  • 1
  • secondTypeId
  • └ gmt_modified
  • Date
  • 2017-11-11
  • gmtModified
  • └ gmt_create
  • Date
  • 2017-11-11
  • gmtCreate
  • └ modifier
  • String
  • ""
  • modifier
  • └ creator
  • String
  • ""
  • creator
  • └ is_delete
  • Boolean
  • false
  • isDelete
  • └ code
  • String
  • ""
  • code
  • └ total_count
  • Number
  • 20
  • totalCount
  • └ request_id
  • String
  • “”
  • requestId
  • └ error_code
  • String
  • “”
  • errorCode
  • └ error_msg
  • String
  • “”
  • errorMsg
  • └ success
  • Boolean
  • true
  • success
  • └ error_level
  • String
  • “”
  • errorLevel

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusSpaceGroupGetlistRequest req = new AlibabaCampusSpaceGroupGetlistRequest();
AlibabaCampusSpaceGroupGetlistRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceGroupGetlistRequest.WorkBenchContext();
obj1.setCampusCode("\"\"");
obj1.setCompanyId(1L);
obj1.setCampusId(100002L);
req.setParam0(obj1);
AlibabaCampusSpaceGroupGetlistRequest.SpaceGroupQuery obj2 = new AlibabaCampusSpaceGroupGetlistRequest.SpaceGroupQuery();
obj2.setLimit(10L);
obj2.setIds(new Long[] { 1 };
);
obj2.setGroupId(1L);
obj2.setFloorId(1L);
obj2.setCurrentPage(1L);
obj2.setCompanyId(1L);
obj2.setTypeId(1L);
obj2.setCampusId(100002L);
obj2.setBuildingId(1L);
obj2.setTypeCode("071207");
obj2.setCode("8-21");
obj2.setName("8");
obj2.setNameOrCode("8-2");
req.setParam1(obj2);
AlibabaCampusSpaceGroupGetlistResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_group_getlist_response>
    <result>
        <contents>
            <space_group>
                <building_name>&quot;&quot;</building_name>
                <building_id>1</building_id>
                <name>&quot;&quot;</name>
                <big_type_name>&quot;&quot;</big_type_name>
                <type_code>&quot;&quot;</type_code>
                <big_type_id>1</big_type_id>
                <id>1</id>
                <type_name>&quot;&quot;</type_name>
                <campus_name>&quot;&quot;</campus_name>
                <type_id>1</type_id>
                <campus_id>100002</campus_id>
                <modifier>&quot;&quot;</modifier>
                <creator>&quot;&quot;</creator>
                <gmt_modified>2017-11-11</gmt_modified>
                <gmt_create>2017-11-11</gmt_create>
                <floor_name>&quot;&quot;</floor_name>
                <floor_id>1</floor_id>
                <description>&quot;&quot;</description>
                <type_wrap>
                    <is_delete>false</is_delete>
                    <description>&quot;&quot;</description>
                    <full_name>&quot;&quot;</full_name>
                    <name>&quot;&quot;</name>
                    <code>&quot;&quot;</code>
                    <second_type_name>&quot;&quot;</second_type_name>
                    <second_type_code>&quot;&quot;</second_type_code>
                    <id>1</id>
                    <second_type_id>1</second_type_id>
                    <gmt_modified>2017-11-11</gmt_modified>
                    <gmt_create>2017-11-11</gmt_create>
                    <modifier>&quot;&quot;</modifier>
                    <creator>&quot;&quot;</creator>
                </type_wrap>
                <is_delete>false</is_delete>
                <code>&quot;&quot;</code>
            </space_group>
        </contents>
        <total_count>20</total_count>
        <request_id>“”</request_id>
        <error_code>“”</error_code>
        <error_msg>“”</error_msg>
        <success>true</success>
        <error_level>“”</error_level>
    </result>
</alibaba_campus_space_group_getlist_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

返回
顶部