新增空间楼宇信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
company_id | Number | 必须 | 10000 | 公司id | |
campus_id | Number | 必须 | 100001 | 园区id | |
entity | Building | 可选 | 实体 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
res | Boolean | true | 是否成功 |
requestid | String | 无 | 无 |
errorcode | String | 错误码 | 错误码 |
content | Boolean | 无 | 无 |
error_msg | String | 错误信息 | 错误信息 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCampusSpaceBuildingInsertRequest req = new AlibabaCampusSpaceBuildingInsertRequest(); req.setCompanyId(10000L); req.setCampusId(100001L); AlibabaCampusSpaceBuildingInsertRequest.Building obj1 = new AlibabaCampusSpaceBuildingInsertRequest.Building(); obj1.setGmtModified(StringUtils.parseDateTime( "2020-12-12 12:12:12" )); obj1.setModifier( "-1" ); obj1.setUuid( "xxx" ); obj1.setId(1L); obj1.setCreator( "-1" ); obj1.setOrderNo(1L); obj1.setAreaStr( "3" ); obj1.setGmtCreate(StringUtils.parseDateTime( "2020-12-12 12:12:12" )); obj1.setName( "1号楼" ); obj1.setStatus(1L); req.setEntity(obj1); AlibabaCampusSpaceBuildingInsertResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < alibaba_campus_space_building_insert_response > < res >true</ res > < requestid >无</ requestid > < errorcode >错误码</ errorcode > < content >无</ content > < error_msg >错误信息</ error_msg > </ alibaba_campus_space_building_insert_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 > |
错误码 | 错误描述 | 解决方案 |
---|