[TOC]
二、消息模块API
1. 消息模块
1.1. 消息列表
APP直接对接,不需要新视窗对接
1.2. 消息详情
APP直接对接,不需要新视窗对接
1.3 IM服务号消息推送
需要新视窗对接:工单提醒推送,接口:/mpm-api/api/tempmsg/create_temp_msg_and_push?accessToken=e5117d48-d46e-4a2e-803f-63e4dd01c604&appKey=5900683d&sourceType=segi&touser=ruanbc,liupan4,luqj1,luoyf13,huangkl1,xiext2,chenxj36,liuxh35,wuls6,panxm7,lixy93,zhangxuan15,licp9,fangjy3,liuhy155,yinxl4,yangms,huangxz4,zhenghuan1,wangmk9,×tamp=1663001091946&sysKey=mideazy_sys&sign=72ce7eb485aeaad196015b9e7db32e66
这里的推送只是工单信息提醒和缴费服务
请求参数
案例
{
"shareRange":"2",
"summary":"巡更主动工单",
"jump_url":"",
"createTime":"2022-09-13",
"sound":"sound_dc.caf",
"converImgUrl":"",
"extras":{
"extras":{
"voice":"new_order.wav",
"isSupervise":"0",
"msgType":"1",
"description":"您有1条待处理工单,请及时处理!",
"title":"您有1条待处理工单,请及时处理!",
"type":"100700",
"content":"巡更主动工单",
"messageType":"pending-deal",
"systemName":"巡更系统",
"businessTypeName":"待处理工单",
"action":"detail",
"from":"4",
"audio":"/web/portal/audio/urgent_order.mp3",
"communityId":"21322210",
"serviceId":"41037836718",
"contentType":"1",
"objectId":"41037836718",
"webReqUrl":"/order-web/#/home/todoOrder?resultCode=NODE_DS_DEAL",
"reminder":"1",
"msgTypeDesc":"【客服工单-工单处理】您有${count}条待处理工单,请及时处理!",
"messageId":"4103783671804",
"webTab":"我的工单",
"userId":"zhangrs3",
"configVal":"midea",
"systemCode":"patrol",
"templateName":"巡更主动工单",
"msgName":"待处理工单",
"organId":"21322210",
"isSyncWeb":"2",
"userType":"2",
"businessType":"pending-deal",
"categoryId":"6",
"jobNumber":"zhangrs3",
"status":"0"
}
},
"mc_widget_identifier":"com.segi.pro.order",
"title":"您有1条待处理工单,请及时处理!",
"noticeTitle":"您有1条待处理工单,请及时处理!",
"openType":"2"
}
页面截图
1.4 工单推送MQ
消息中间件:rocketmq
历史:receive mq topic: SEGI_CMHK_MSGCENTER_YDSQ-ORDER,
消息体:message :{"baseCode":"BS_order","dataArea":"HJLV_XT","changeId":"5","data":{"serviceOrderId":"41037849255","serviceOrderCode":"0120220914019690","orderKey":"","communityId":"21322117","eCommunityId":"190767F3-7817-4D46-A619-DD362A4FC4A5","otherSystem":"0","templateId":"10291","templateDifId":"20000909","busiTypeId":"1225","organId":"21322124","serviceTypeCode":"HJLV_XT","busiTypeCode":"11082","trackId":"4103784925503","trackCode":"NODE_DS_TAKE","trackName":"接单","createDate":"20220914084204","statusName":"待接单","superviseOneTime":"20","superviseTwoTime":"0","superviseThrTime":"0","hangStatus":"0","trackInfo":"待吕悦君,黎爱敏接单","currentUser":[{"userId":"1915998","userName":"吕悦君","userType":"2","userTel":"15917871944","eUserId":"lvyj1"},{"userId":"1916004","userName":"黎爱敏","userType":"2","userTel":"15017682625","eUserId":"liam2"}]}}
topic: SEGI_CMHK_MSGCENTER_YDSQ
相关配置:rocketmq:
consumer: # 消费者配置
groupName: mideazy-subscribe-segiuhome
ydOrderGroupName: YDSQ-ORDER
namesrvAddr: 10.18.36.186:9876
说明:新视窗需要根据<<服务工单对外推送接口>>文档,进行对接,让工单相关的状态扭转,新增按以前的格式进行推送,新视窗需要重新提供给智慧3.0相关的rocketMq的配置
注意:工单相关的集成新视窗的SDK,包含管家APP的所有工单+社区的轻松报修
案例
{
"baseCode":"BS_order",
"dataArea":"HJLV_XT",
"changeId":"5",
"data":{
"serviceOrderId":"41037849255",//工单ID
"serviceOrderCode":"0120220914019690",//工单编码
"orderKey":"",
"communityId":"21322117",//真实项目ID
"eCommunityId":"190767F3-7817-4D46-A619-DD362A4FC4A5",//地产项目ID
"otherSystem":"0",
"templateId":"10291",//模版实例ID
"templateDifId":"20000909",//服务定义ID
"busiTypeId":"1225",//业务类型ID
"organId":"21322124",//项目ID
"serviceTypeCode":"HJLV_XT",
"busiTypeCode":"11082",
"trackId":"4103784925503",//流程节点ID
"trackCode":"NODE_DS_TAKE",//流程节点编码
"trackName":"接单",//节点名称
"createDate":"20220914084204",//创建时间
"statusName":"待接单",//状态描述
"superviseOneTime":"20",
"superviseTwoTime":"0",
"superviseThrTime":"0",
"hangStatus":"0",
"trackInfo":"待吕悦君,黎爱敏接单",
"currentUser":[ //当前处理人信息
{
"userId":"1915998",
"userName":"吕悦君",
"userType":"2",
"userTel":"15917871944",
"eUserId":"lvyj1"
},
{
"userId":"1916004",
"userName":"黎爱敏",
"userType":"2",
"userTel":"15017682625",
"eUserId":"liam2"
}
]
}
}
1.5 产权认证推送MQ
消息中间件:rocketmq
历史:receive mq topic: AUTH_PLATE_FORM_TOPIC,
消息体:message :{"applyTime":1663085967000,"authFlag":4,"buildId":51030304,"communityId":50470082,"custId":17733191,"defaultFlag":1,"happenTime":1663085967000,"houseId":36321405,"houseName":"8栋1单元2601","houseRelation":1,"liveFlg":1,"orderFlag":1,"relId":14230176,"roomNo":"2601","status":1,"synTime":1663085967000,"synflag":0,"unitId":51030305,"userId":301235054,"userType":1001}
topic: AUTH_PLATE_FORM_TOPIC
相关配置:rocketmq:
consumer: # 消费者配置
groupName: mideazy-subscribe-segiuhome
ydOrderGroupName: YDSQ-ORDER
namesrvAddr: 10.18.36.186:9876
说明:新视窗需要根据该说明,进行对接,产权的信息的变更都需要推送消息到智慧3.0,且新视窗需要重新提供给智慧3.0相关的rocketMq的配置
参数说明
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
relId | BODY | Long | 是 | 用户房屋关系ID |
userId | BODY | Long | 是 | 用户ID |
houseId | BODY | Long | 是 | 房间ID |
happenTime | BODY | Long | 是 | 修改时间 |
applyTime | BODY | Long | 是 | 申请时间 |
applyDesc | BODY | STRING | 是 | 审核描述 |
status | BODY | Integer | 是 | 状态:-1-已删除,0-禁用,1-启用 |
synTime | BODY | Long | 是 | 同步时间 |
defaultFlag | BODY | Integer | 是 | 是否默认房屋,1是,0否 |
communityId | BODY | Integer | 是 | 项目ID |
buildId | BODY | Integer | 是 | 楼栋ID |
unitId | BODY | Integer | 是 | 单元ID |
userType | BODY | Integer | 是 | 认证类型:1000-业主(产权人),1001-业主成员(产权人成员),2000-租户,2001-租住成员 |
custId | BODY | Long | 是 | 客户ID |
inTime | BODY | Long | 否 | 开始时间 |
outTime | BODY | Long | 否 | 结束时间 |
authFlag | BODY | Integer | 是 | 认证状态:0-未申请(待认证),1-已申请(待认证),2-审核不通过,3-迁出,4-正常 |
roomNo | BODY | String | 是 | 房号 |
houseName | BODY | String | 是 | 房屋名称 |
案例
{
"applyTime":1663085967000, //申请时间
"authFlag":4,//认证类型 4:认证成功,3:认证迁出,1:申请认证,2:认证审核不通过
"buildId":51030304,//楼栋ID
"communityId":50470082,//项目ID
"custId":17733191,//客户ID
"defaultFlag":1,
"happenTime":1663085967000,//申请时间
"houseId":36321405,//房间ID
"houseName":"8栋1单元2601",//房间名称
"houseRelation":1,//
"liveFlg":1,
"orderFlag":1,
"relId":14230176,//房客关联关系ID
"roomNo":"2601",//房间号
"status":1,//状态吗
"synTime":1663085967000,//同步时间
"synflag":0,
"unitId":51030305,//单元ID
"userId":301235054,//用户ID
"userType":1001 //认证类型:
}
涉及页面截图