根据ids和类型查询空间列表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
context | WorkBenchContext | 可选 | 上下文 | ||||||||
|
|||||||||||
query | SpaceIdsQuery | 可选 | 查询条件 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ListResult | 外卖订单查询结果 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCampusSpaceGetbyidsRequest req = new AlibabaCampusSpaceGetbyidsRequest(); AlibabaCampusSpaceGetbyidsRequest.WorkBenchContext obj1 = new AlibabaCampusSpaceGetbyidsRequest.WorkBenchContext(); obj1.setCompanyId(10000L); obj1.setCampusId(100001L); req.setContext(obj1); AlibabaCampusSpaceGetbyidsRequest.SpaceIdsQuery obj2 = new AlibabaCampusSpaceGetbyidsRequest.SpaceIdsQuery(); obj2.setSpaceType( "floor" ); obj2.setIds( new Long[] { 100001 }; ); req.setQuery(obj2); AlibabaCampusSpaceGetbyidsResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | < alibaba_campus_space_getbyids_response > < result > < success >true</ success > < error_code >200</ error_code > < contents > < content > < area >1.0</ area > < creator >111143930</ creator > < gmt_modified >1507769502468</ gmt_modified > < order_no >1</ order_no > < code >1F</ code > < space_type >floor</ space_type > < campus_name >西溪园区</ campus_name > < is_delete >false</ is_delete > < modifier >111144220</ modifier > < campus_id >100001</ campus_id > < geo_floor_id >1</ geo_floor_id > < description >demo</ description > < gmt_create >1481873566000</ gmt_create > < uuid >demo</ uuid > < building_id >100001</ building_id > < floor_id >100001</ floor_id > < building_name >1号楼</ building_name > < company_id >10000</ company_id > < name >1F</ name > < floor_name >1F</ floor_name > < id >100001</ id > < status >1</ status > < height >demo</ height > </ content > </ contents > < error_msg >success</ error_msg > </ result > </ alibaba_campus_space_getbyids_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|