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

alibaba.campus.space.type.getpageresult (分页查询空间类别接口)

分页查询空间类别接口 HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService HSF方法名称:getPageResult

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 WorkBenchContext 必须 环境参数
  • └ company_id
  • Number
  • 可选
  • 10000
  • 公司id
  • └ campus_id
  • Number
  • 必须
  • 10000
  • 园区id
param1 SpaceTypeQuery 必须 查询参数
  • └ limit
  • Number
  • 可选
  • 10
  • 每页大小
  • └ top_level_id
  • Number
  • 可选
  • 1
  • 大类id
  • └ pid
  • Number
  • 可选
  • 1
  • 中类id
  • └ group_top_level_id
  • Number
  • 可选
  • 1
  • 分组大类id
  • └ id
  • Number
  • 可选
  • 1
  • 小类id
  • └ category
  • Number
  • 可选
  • 1
  • 类别,室内,室外,逻辑
  • └ start_row
  • Number
  • 可选
  • 1
  • 起始行
  • └ space_top_level_id
  • Number
  • 可选
  • 1
  • 空间大类id
  • └ current_page
  • Number
  • 可选
  • 1
  • 当前页码
  • └ key
  • String
  • 可选
  • 停车
  • 模糊查询key

响应参数

名称 类型 示例值 描述
result PageResult {} result
  • content
  • Page
  • {}
  • content
  • └ total
  • Number
  • 100
  • total
  • └ limit
  • Number
  • 10
  • limit
  • results
  • PoiTypeWrap []
  • []
  • result
  • └ classify
  • String
  • 空间
  • 类别的实际名称,空间或分组
  • └ is_delete
  • Boolean
  • false
  • 是否删除
  • └ description
  • String
  • ""
  • 描述
  • └ full_name
  • String
  • ""
  • 全名
  • └ name
  • String
  • ""
  • 小类名称
  • └ code
  • String
  • ""
  • 小类编码
  • └ second_type_name
  • String
  • ""
  • 中类名称
  • └ second_type_code
  • String
  • ""
  • 中类编码
  • └ second_type_id
  • Number
  • 1
  • 中类id
  • └ id
  • Number
  • 1
  • id
  • └ total_count
  • Number
  • 100
  • 总数
  • └ page_size
  • Number
  • 10
  • 每页大小
  • └ current_page
  • Number
  • 1
  • 当前页
  • └ total_page
  • Number
  • 10
  • 总页数
  • └ 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);
AlibabaCampusSpaceTypeGetpageresultRequest req = new AlibabaCampusSpaceTypeGetpageresultRequest();
AlibabaCampusSpaceTypeGetpageresultRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceTypeGetpageresultRequest.WorkBenchContext();
obj1.setCompanyId(10000L);
obj1.setCampusId(10000L);
req.setParam0(obj1);
AlibabaCampusSpaceTypeGetpageresultRequest.SpaceTypeQuery obj2 = new AlibabaCampusSpaceTypeGetpageresultRequest.SpaceTypeQuery();
obj2.setLimit(10L);
obj2.setTopLevelId(1L);
obj2.setPid(1L);
obj2.setGroupTopLevelId(1L);
obj2.setId(1L);
obj2.setCategory(1L);
obj2.setStartRow(1L);
obj2.setSpaceTopLevelId(1L);
obj2.setCurrentPage(1L);
obj2.setKey("停车");
req.setParam1(obj2);
AlibabaCampusSpaceTypeGetpageresultResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_space_type_getpageresult_response>
    <result>
        <content>
            <total>100</total>
            <limit>10</limit>
            <results>
                <poi_type_wrap>
                    <classify>空间</classify>
                    <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>
                    <second_type_id>1</second_type_id>
                    <id>1</id>
                </poi_type_wrap>
            </results>
            <total_count>100</total_count>
            <page_size>10</page_size>
            <current_page>1</current_page>
            <total_page>10</total_page>
        </content>
        <request_id>&quot;&quot;</request_id>
        <error_code>&quot;&quot;</error_code>
        <error_msg>&quot;&quot;</error_msg>
        <success>true</success>
        <error_level>&quot;&quot;</error_level>
    </result>
</alibaba_campus_space_type_getpageresult_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

返回
顶部