15 睿智云平台API
睿智云平台API为云邻和睿住社区平台共用的业务API。
API列表
编号 | API名称 | |
---|---|---|
15.1 | 平台多租户标识识别全局工具 | |
15.2 | 由小区ID查询授予特定角色的员工 | /v1/iot/main/platform/community/admins |
15.3 | 由业务组织ID查询授予特定角色的员工 | /v1/iot/main/platform/org/admins |
15.4 | /v1/iot/main/platform/org/admin/role/match | |
15.5 | 由员工ID和项目ID查询员工已授予的相关业务的平台内置角色 | /v1/iot/main/platform/org/admin/role |
15.6 | 全局业务组织切换,重置tokenInfo | /v1/iot/main/platform/tokenInfo/reset |
15.7 | 获取临时sessionInfo Token | /v1/quality/categoryInfo/getToken/88293 |
15.8 | 查询业务组织下所有的小区列表 | /v1/iot/main/customer/house/relation/query/communitys |
15.9 | 查询业务组织下的员工 | /v1/iot/main/platform/admins/{org_id} |
15.1:平台多租户标识识别全局工具
原理:
用户登录=》服务器返回私钥加密后 tokenInfo =》H5将tokenInfo转码携带至头部=》网关转发至各微服务
=》微服务获取头部tokenInfo使用全局工具获取所需要的租户标识。
包名:
序号 | 类完整路径 | 方法 | 说明 |
---|---|---|---|
1 | com.smart.remac.quality.config.GlobalValidateTool.java | public int fetchTenantId( String tokenInfo ) throws Exception; | 获取 平台租口ID, 0:云邻 1平台:睿住 平台 |
2 | public String fetchOrgCodes( String tokenInfo ) throws Exception; | 获取用户的角色所关联的业务组织code, 以逗号隔开 | |
3 | public String fetchRoles( String tokenInfo ) throws Exception ; | 获取用户的角色,预留功能 。 | |
4 | public TokenInfo getTokenInfo( String tokenInfo ) throws Exception; | 获取登录员工的信息 | |
5 | com.smart.remac.quality.controller.BaseController | public |
Controller层全局校验 |
请在Http 的 controller 层继承BaseController, 调用 validate(body, tokenInfo)方法,一次性获取到用户名、平台租户ID 等标识。
代码示例:
public class CategoryInfoController extends BaseController {
public Mono<JSONObject> update(@RequestHeader(name = "tokenInfo", required = false) String tokenInfo, @RequestBody CategoryInfo body) {
JSONObject res = new JSONObject();
res.put("code", ResEnum.cocde_success.getCode());
res.put("message", "成功");
try{
body = super.validate(body, tokenInfo);
if ( StringUtils.isEmpty(body.getName())) {
res.put("code", ResEnum.cocde_fail.getCode());
res.put("message", "类别名称不可为空");
return Mono.just(res);
}
JSONObject data = new JSONObject();
CategoryInfo result = categoryInfoService.updateCategoryInfo(body);
data.put("result", result );
res.put("data", data);
}catch(Exception e) {
log.error(StackTool.error(e, 60));
res.put(Constant.CODE, ResEnum.cocde_fail.getCode());
res.put(Constant.MESSAGE, e.getMessage());
}
return Mono.just(res);
}
}
15.2 由小区ID查询授予特定角色的员工
描述 仅适用于睿住平台,需要指定业务编码。 仅适用于睿住平台,睿智云平台角色分为:普通角色和内置角色,平台内置角色指的是由平台统一设置,有固定的角色编码,由平台超管维护,不对外开放新增、修改、删除、查询操作。 需要指定业务编码。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/community/admins
方法:POST
请求参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
communityId | Long | 是 | 小区ID |
roleCode | String | 是 | 平台内置角色编码,当前有:PROJECT_ENGINE_SUPERVISOR:项目主管; BUSINESS_MANAGER:业务线主管;QUALITY_CHECK_EXECUTOR:品检执行人 |
businessCode | String | 是 | 业务编码:quality: 品质管理模板 , equipment:设备设施管理 |
请求Body描述(非Form表单数据)
{"communityId": 89197, "roleCode": "BUSINESS_MANAGER", "businessCode": "quality"}
测试样例 :
http://localhost:20070/v1/iot/main/platform/community/admins
{"communityId": 89197, "roleCode": "BUSINESS_MANAGER", "businessCode": "quality"}
返回 :
{
"code": "200",
"data": {
"result": [
{
"id": 88293,
"org_id": 88290,
"mobile": "13926003690",
"org_code": "100000344",
"nickname": "客户000010",
"job_number": "pz0001",
"name": "品质测试1",
"sex": null,
"email": "pz0001@126.com",
"identity": null,
"type": 1,
"status": 1,
"staff_no": "pz0001",
"position": null,
"is_supper": 1,
"is_effective": 1,
"orgName": null
}
]
},
"message": "成功"
}
返回一组管理员对象集合。 管理员实体见 iot-main-domain:com.mideazy.smart.iot.domain.Admin
15.3 由业务组织ID查询授予特定角色的员工
描述 仅适用于睿住平台,需要指定业务编码。 仅适用于睿住平台,睿智云平台角色分为:普通角色和内置角色,平台内置角色指的是由平台统一设置,有固定的角色编码,由平台超管维护,不对外开放新增、修改、删除、查询操作。 需要指定业务编码。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/org/admins
方法:POST
请求参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
orgId | Long | 是 | 业务组织ID |
roleCode | String | 是 | 平台内置角色编码,当前提供的平台内置角色有:PROJECT_ENGINE_SUPERVISOR:项目主管; BUSINESS_MANAGER:业务线主管;QUALITY_CHECK_EXECUTOR:品检执行人 |
businessCode | String | 是 | 业务编码:quality: 品质管理模板 , equipment:设备设施管理 |
请求Body描述(非Form表单数据)
{"orgId": 89196, "roleCode": "BUSINESS_MANAGER", "businessCode": "quality"}
测试样例 :
http://localhost:20070/v1/iot/main/platform/org/admins
{"orgId": 89196, "roleCode": "BUSINESS_MANAGER", "businessCode": "quality"}
返回 :
{
"code": "200",
"data": {
"result": [
{
"id": 88293,
"org_id": 88290,
"mobile": "13926003690",
"org_code": "100000344",
"nickname": "客户000010",
"job_number": "pz0001",
"name": "品质测试1",
"sex": null,
"email": "pz0001@126.com",
"identity": null,
"type": 1,
"status": 1,
"staff_no": "pz0001",
"position": null,
"is_supper": 1,
"is_effective": 1,
"orgName": null
}
]
},
"message": "成功"
}
返回一组管理员对象集合。 管理员实体见 iot-main-domain:com.mideazy.smart.iot.domain.Admin
15.4 由员工ID和项目ID查询员工已授予的相关业务的平台内置角色
描述 仅适用于睿住平台, 需要指定业务编码。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/org/admin/roles
方法:POST
请求参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
adminId | Long | 是 | 员工ID |
communityId | Long | 是 | 小区ID |
businessCode | String | 是 | 业务编码,quality: 品质管理 , equipment:设备设施管理 , work order: 工单 |
请求Body描述(非Form表单数据)
{"communityId":19,"adminId": 9091, "businessCode":"quality" }
返回示例 :
{ "code":"200", "message": "success", "data":{"result": ["PROJECT_ENGINE_SUPERVISOR", "BUSINESS_MANAGER" ]} }
15.5 查询平台特定内置角色
描述 仅适用于睿住平台, 需要指定业务编码。返回全局切换业务组织下平台内置角色集合
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/org/role/list
方法:POST
请求参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
businessCode | String | 是 | 业务编码,quality: 品质管理 , equipment:设备设施管理 , work order: 工单 |
org_id | Long | 否 | 后台PC端可以不用传,但管家APP必传。 |
请求示例 :
http://localhost:18089/v1/iot/main/platform/org/role/list
{"businessCode": "workorder"}
返回示例 :
{
"code": "200",
"data": [
{
"role_id": 117212,
"role_name": "管家"
}
],
"message": "成功"
}
15.6 由角色ID集合查询所有的员工
描述 仅适用于睿住平台,返回授予角色的员工集合。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/get/admins/by/roleIds
方法:PUT
Body 属性
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
roleIds | Arraty |
是 | 角色ID集合,如 :[109,120], 必须是平台内置角色 |
businessCode | String | 是 | 业务编码,quality: 品质管理 , equipment:设备设施管理 , work order: 工单。 避免查询业务范围过大。 |
pageable | Boolean | 否 | 默认为true, 支持分页。false: 全量返回 ,不分页。 |
返回示例 :
请求示例 :
http://localhost:18089/v1/iot/main/platform/get/admins/by/roleIds
{"businessCode": "workorder", "roleIds": [27824, 117212] }
返回 :
{
"code": "200",
"data": {
"result": [
{
"id": 117209,
"mobile": "13102422681",
"job_number": "workorder2",
"name": "工单测试2"
},
{
"id": 117208,
"mobile": "13102422680",
"job_number": "workorder1",
"name": "工单测试人员1"
}
],
"pageNo": 1,
"pageSize": 20,
"total": 2,
"totalPage": 1
},
"message": "成功"
}
15.6A 由角色ID集合查询所有的员工
描述 仅适用于睿住平台,返回授予角色的员工集合。 需要按角色列出人员且人员图像需要返回。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/get/admins/by/roleIds/v2
方法:POST
Body 属性
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
roleIds | Arraty |
是 | 角色ID集合,如 :[109,120], 必须是平台内置角色 |
businessCode | String | 是 | 业务编码,quality: 品质管理 , equipment:设备设施管理 , work order: 工单。 避免查询业务范围过大。 |
返回示例 :
请求示例 :
http://localhost:18089/v1/iot/main/platform/get/admins/by/roleIds/v2
{"businessCode": "workorder", "roleIds": [27824, 117212] }
返回 :
{
"code": "200",
"data": {
"result": [
{
"role_name": "管家",
"role_id": 117212,
"admins": [
{
"id": 117208,
"mobile": "13102422680",
"job_number": "workorder1",
"name": "工单测试人员1",
"ico": null
},
{
"id": 117209,
"mobile": "13102422681",
"job_number": "workorder2",
"name": "工单测试2",
"ico": "https://iot-xlink-xfile.oss-cn-hangzhou-internal.aliyuncs.com/customer/2022-01-06/1166981641448421249.jpg"
}
]
}
]
},
"message": "成功"
}
15.6B 由员工ID集合查询平台内置角色
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/get/roles/by/adminId
方法:PUT
路径参数
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
adminId | Long | 是 | 员工的ID |
businessCode | String | 是 | 业务编码,quality: 品质管理 , equipment:设备设施管理 , work order: 工单。 避免查询业务范围过大。 |
返回示例 :
{
"code":"200",
"message":"success",
"data":{
"result": [
{"role_id":11, "role_name":""},
...
{"role_id":11, "role_name":""}
]
}
}
15.6C 由角色ID集合查询所有的员工
范围:员工端及PC管理端
描述 返回指定业务的平台内置角色及人员列表。一次性以角色-人员列表的格式返回 。平台需要从用户
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/get/admins/by/roleIds/v3
方法:POST
Body 属性
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
businessCode | String | 是 | 业务编码,quality: 品质管理 , equipment:设备设施管理 , work order: 工单。 避免查询业务范围过大。 |
返回示例 :
请求示例 :
http://localhost:18089/v1/iot/main/platform/get/admins/by/roleIds/v3
{"businessCode": "workorder" }
返回 :
{
"code": "200",
"data": {
"result": [
{
"role_name": "管家",
"role_id": 117212,
"admins": [
{
"id": 117208,
"mobile": "13102422680",
"job_number": "workorder1",
"name": "工单测试人员1",
"ico": null
},
{
"id": 117209,
"mobile": "13102422681",
"job_number": "workorder2",
"name": "工单测试2",
"ico": "https://iot-xlink-xfile.oss-cn-hangzhou-internal.aliyuncs.com/customer/2022-01-06/1166981641448421249.jpg"
}
]
}
]
},
"message": "成功"
}
15.7 重置tokenInfo
描述 用于重置tokenInfo, 在原有的tokenInfo头部将全局切换业务组织createOrgId, createOrgCode注入,一劳永逸,不需要前端传这两个参数。
注:请平台管理端H5在左上角全局切换点击树型节点时调用平台这个接口,H5获取新的tokenInfo后请及时替换掉原有的旧tokenInfo。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/iot/main/platform/tokenInfo/reset
方法:POST
请求参数:
HTTP头部:原登录获取的 tokenInfo和Authorization 必传。
Body:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
createOrgId | Long | 是 | 全局切换业务组织ID |
createOrgCode | String | 是 | 全局切换业务组织code |
请求Body描述(非Form表单数据)
{"createOrgId":19, "createOrgCode":"100000001"}
返回示例 :
{ "code":"200", "message": "success", "data": "新的tokenInfo值" }
15.8 获取临时sessionInfo Token
描述 用于测试环境,由员工帐号pz0001生成的sessionInfo
注:此接口临时开放给后端开发,便于快速联调接口; 产品上线后将不再开放。
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/quality/categoryInfo/getToken/88293
方法:get
https://biz-admin-sit.smartmideazy.com/v1/quality/categoryInfo/getToken/88293
返回示例 :
{"code":200,"data":"%7B%22currentBizFullName%22%3A%22%E5%93%81%E8%B4%A8%E7%AE%A1%E7%90%86%E8%99%9A%E6%8B%9F%E4%B8%9A%E5%8A%A1%E7%BB%84%E7%BB%87%22%2C%22name%22%3A%22pz0001%22%2C%22id%22%3A%2288293%22%2C%22position%22%3A%22%E6%97%A0%E4%B8%9A%E6%B8%B8%E6%B0%91%22%2C%22status%22%3A1%2C%22tenantId%22%3A%220%22%2C%22topBizOrgCode%22%3A%2288291%22%2C%22topBizOrgId%22%3A%2288291%22%2C%22roles%22%3A%22100000345%22%2C%22isSupper%22%3A1%2C%22orgCodes%22%3A%22%22%7D","message":"成功"}
15.9 查询业务组织下所有的小区列表
https://biz-admin-sit.smartmideazy.com/v1/iot/main/customer/house/relation/query/communitys
方法:POST
请求参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
org_code | String | 否 | 全局切换业务组织code; org_code、org_id两者必传其一。 |
org_id | Long | 否 | 全局切换业务组织ID; org_code、org_id两者必传其一。 |
请求:
{"org_code":"100000345"}
返回 :
{"code":"200","message":"成功","version":null,"returnExceptionData":false,"result":[{"create_by":null,"update_by":null,"create_by_id":null,"update_by_id":null,"create_time":1636012210000,"update_time":1636012210000,"id":89197,"parentid":null,"space_id":null,"parent_space_id":null,"community_id":null,"space_name":"品质管理智慧小区","full_space_name":"品质管理智慧小区","parent_code":null,"space_code":"100002389","space_type":"COMMUNITY","space_sort":"COMMUNITY","org_code":"100000345100000000","business_type":1,"src":1,"org_id":89196,"top_org_id":88291,"top_org_code":"100000345","status":1,"area":270.0,"fee_area":null,"business_code":null,"logic_deleted":1,"lease_status":0,"owner_names":null,"top_org_name":null,"hasRelated":null,"province":null,"city":null,"district":null,"detail":null,"lon":0.0,"lat":0.0,"children":null,"parent_name":null,"org_ids":null,"pageNo":0,"pageSize":0,"list":null,"org_id_name":null,"orgName":null,"authOrg":null,"orderby":null,"directChildrenNums":0,"directZoneNums":0,"directPhysicalSpaceNums":0,"is_super":null,"orgCode":null,"oldRelOrgId":null,"selected":false,"_only_sub":true},{"create_by":null,"update_by":null,"create_by_id":null,"update_by_id":null,"create_time":1636685099000,"update_time":1637129614000,"id":89534,"parentid":null,"space_id":null,"parent_space_id":null,"community_id":null,"space_name":"品质管理智慧小区2","full_space_name":"品质管理智慧小区2","parent_code":null,"space_code":"100002390","space_type":"COMMUNITY","space_sort":"COMMUNITY","org_code":"100000345100000001","business_type":1,"src":1,"org_id":89533,"top_org_id":88291,"top_org_code":"100000345","status":1,"area":1200.0,"fee_area":null,"business_code":null,"logic_deleted":1,"lease_status":0,"owner_names":null,"top_org_name":null,"hasRelated":null,"province":null,"city":null,"district":null,"detail":null,"lon":0.0,"lat":0.0,"children":null,"parent_name":null,"org_ids":null,"pageNo":0,"pageSize":0,"list":null,"org_id_name":null,"orgName":null,"authOrg":null,"orderby":null,"directChildrenNums":0,"directZoneNums":0,"directPhysicalSpaceNums":0,"is_super":null,"orgCode":null,"oldRelOrgId":null,"selected":false,"_only_sub":true},{"create_by":null,"update_by":null,"create_by_id":null,"update_by_id":null,"create_time":1637290650000,"update_time":1637290650000,"id":91016,"parentid":null,"space_id":null,"parent_space_id":null,"community_id":null,"space_name":"子公司品质管理测试小区","full_space_name":"子公司品质管理测试小区","parent_code":null,"space_code":"100002397","space_type":"COMMUNITY","space_sort":"COMMUNITY","org_code":"100000345100000002100000000100000000","business_type":1,"src":1,"org_id":91015,"top_org_id":15265,"top_org_code":"100000002","status":1,"area":1200.0,"fee_area":null,"business_code":null,"logic_deleted":1,"lease_status":null,"owner_names":null,"top_org_name":null,"hasRelated":null,"province":null,"city":null,"district":null,"detail":null,"lon":0.0,"lat":0.0,"children":null,"parent_name":null,"org_ids":null,"pageNo":0,"pageSize":0,"list":null,"org_id_name":null,"orgName":null,"authOrg":null,"orderby":null,"directChildrenNums":0,"directZoneNums":1,"directPhysicalSpaceNums":0,"is_super":null,"orgCode":null,"oldRelOrgId":null,"selected":false,"_only_sub":true}],"communitys":null,"pageNo":0,"pageSize":0,"total":0,"totalPage":0}
15.10 查询业务组织下的员工
URL: /v1/iot/main/platform/org/admins/by/page
描述:由org_id查询所有的员工列表,分页
Method: POST
Body 属性:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
org_id | Long | 是 | 全局切换业务组织ID |
by_role | Integer | 否 | 是否按角色查找员工,1:是;2: 否, 按业务组织关联的行政组织,查找关联的行政组织下所有的员工。默认按角色查找业务组织下的员工。 |
pageNo | Int | 否 | 页码,默认为1 |
pageSize | Int | 是 | 分页尺寸,默认为20 |
返回 :示例
{
"code": "200",
"data": {
"result": [
{
"id": 109644,
"org_id": 15272,
"mobile": "13100988654",
"org_code": "100000000100000000100000000100000000100000000100000000100000000100000000",
"src": 1,
"nickname": "客户000043", ...
} , ... ]
}
}
15.11 由项目ID查询当天生日的社区用户
URL: /v1/iot/main/platform/app/birthday/users
描述:
Method: PUT
Body 属性:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
space_id | Long | 是 | 项目ID |
返回 :示例
{
"code": "200",
"data": {
"result": [
{
"id": 109644,
"org_id": 15272,
"mobile": "13100988654",
"org_code": "100000000100000000100000000100000000100000000100000000100000000100000000",
"src": 1,
"nickname": "客户000043", ...
} , ... ]
}
}
15.12 由项目ID查询额外信息
管家端
URL: /v1/iot/main/spacelocation/otherinfo/{space_id}
业主端:
URL: /v1/iot/app/spacelocation/otherinfo/{space_id}
描述:
Method: GET
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
space_id | Long | 是 | 项目ID |
返回 :示例
{
"code": "200",
"data": {
"result": {
"space_id": 21906,
"shift_times_json": [
{
"begin_time": "",
"end_time": ""
}
],
"contact_tels_json": [
{
"area_no": "020",
"tel": "25778932"
}
]
}
},
"message": "成功"
}
15.13 由项目ID查询人房关系
管家端
URL: /v1/iot/main/platform/customer/house/rel
Method: POST
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
space_id | Long | 是 | 项目ID |
key_word | String | 否 | 房产名称查询关键词。全模糊查询 |
include_app_user | Int | 否 | 1: 返回结果包含未注册社区APP的客户;2:返回结果不包含未注册社区APP的客户;默认为1 |
pageNo | Int | 否 | 页码。默认为1. |
pageSize | Int | 否 | 分页尺寸。默认20,最大50条记录。 |
返回 :示例
{
"code": "200",
"data": {
"result": [
{
"house_id": 91740,
"customer_id": 112431,
"full_space_name": "悦然寓111-修改6/建筑物/1/A/1/101",
"customer_name": "Rrrr",
"customer_phone": "13480940437"
},
{
"house_id": 91740,
"customer_id": 91745,
"full_space_name": "悦然寓111-修改6/建筑物/1/A/1/101",
"customer_name": "肖杨xy",
"customer_phone": "18819450802"
},
{
"house_id": 20718,
"customer_id": 87759,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/201",
"customer_name": "肖扬",
"customer_phone": "18819450802"
},
{
"house_id": 20684,
"customer_id": 86199,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/1/101",
"customer_name": "杨观超",
"customer_phone": "13005428825"
},
{
"house_id": 20718,
"customer_id": 20411,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/201",
"customer_name": "李大明",
"customer_phone": "13088842180"
},
{
"house_id": 20718,
"customer_id": 25980,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/201",
"customer_name": "健力宝",
"customer_phone": "13133334411"
},
{
"house_id": 20718,
"customer_id": 28059,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/201",
"customer_name": "业主成员",
"customer_phone": "15618341512"
},
{
"house_id": 20718,
"customer_id": 27496,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/201",
"customer_name": "流星",
"customer_phone": "18820903880"
},
{
"house_id": 20721,
"customer_id": 25980,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/204",
"customer_name": "健力宝",
"customer_phone": "13133334411"
},
{
"house_id": 20684,
"customer_id": 23354,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/1/101",
"customer_name": "马海恩",
"customer_phone": "18978860238"
},
{
"house_id": 20718,
"customer_id": 20692,
"full_space_name": "悦然寓111-修改6/北区/建筑物/A/二单元/2/201",
"customer_name": null,
"customer_phone": null
},
{
"house_id": 20684,
"customer_id": 20411,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/1/101",
"customer_name": "李大明",
"customer_phone": "13088842180"
},
{
"house_id": 21974,
"customer_id": 22094,
"full_space_name": "悦然寓111-修改6/北区/建筑物/B/第一单元/1/1C",
"customer_name": "樊哙",
"customer_phone": "13444444116"
},
{
"house_id": 20684,
"customer_id": 21007,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/1/101",
"customer_name": "黎明",
"customer_phone": "13434905798"
},
{
"house_id": 21579,
"customer_id": 21007,
"full_space_name": "悦然寓111-修改6/南区/建筑物/B栋/单元一/1/1D",
"customer_name": "黎明",
"customer_phone": "13434905798"
},
{
"house_id": 21250,
"customer_id": 21763,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/5/501",
"customer_name": "嬴荡",
"customer_phone": "13899990000"
},
{
"house_id": 21250,
"customer_id": 20937,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/5/501",
"customer_name": "方媛",
"customer_phone": "13444444412"
},
{
"house_id": 21250,
"customer_id": 20936,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/5/501",
"customer_name": "郭富城",
"customer_phone": "13300008888"
},
{
"house_id": 21250,
"customer_id": 21096,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/5/501",
"customer_name": "张学友",
"customer_phone": "13444444433"
},
{
"house_id": 21250,
"customer_id": 21007,
"full_space_name": "悦然寓111-修改6/南区/建筑物/A栋/第一单元/5/501",
"customer_name": "黎明",
"customer_phone": "13434905798"
}
],
"pageNo": 1,
"pageSize": 20,
"total": 116,
"totalPage": 6
},
"message": "成功"
}
15.14 由项目ID查询员工
管家端
URL: /v1/iot/main/platform/admins/rel
Method: POST
路径参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
space_id | Long | 是 | 项目ID |
key_word | String | 否 | 依据员工姓名、手机号、帐号来全糊糊查询 |
pageNo | Int | 否 | 页码。默认为1. |
pageSize | Int | 否 | 分页尺寸。默认20,最大50条记录。 |
返回 :示例
{
"code": "200",
"data": {
"result": [
{员工对象}
],
"pageNo": 1,
"pageSize": 20,
"total": 116,
"totalPage": 6
},
"message": "成功"
}
15.15 由项目ID和社区用户ID查询单元和房产
URL: /v1/iot/main/platform/get/propertys
Method: PUT
Body参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
userId | Long | 是 | 社区用户ID |
communityId | Long | 是 | 小区ID |
返回 :示例
{
"code": "200",
"data": {
"result": {
"unitIds": [109,110],
"houseIds": [129,130]
}
},
"message": "成功"
}
15.16 由项目ID和客户ID查询社区用户ID
URL: /v1/iot/main/platform/get/userIds
Method: PUT
Body参数:
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
customerId | Long | 是 | 客户ID |
communityId | Long | 是 | 小区ID |
返回 :示例
{
"code": "200",
"data": {
"result":
[109,110],
"message": "成功"
}