🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 服务记录模块 ## **Web端交互** > ***** ![(images/screenshot_1567145572362.png)](https://img.kancloud.cn/e4/a7/e4a780c4b9b2e6835f0d2c3d93ffa04b_1089x792.png) ## **API相关文档** > ***** 接口描述 | **查询服务记录** ---|--- URL | /wechat_api/servicerecord/recordList 请求方式 | get 请求参数 | {beginTime:"",endTime:"",serviceType:"",contactName:"",serviceNote:"",status:"",limit=10:"",pageNo:""} 返回值 | {"code":200,"data":[],"pageNo":1,"count":0} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | beginTime| string | Y |开始时间 | 请求参数 | endTime| string | Y |结束时间 | 请求参数 | serviceType| string | Y |服务类型 | 请求参数 | contactName| string | Y |联系名 | 请求参数 | serviceNote| string | Y |服务内容 | 请求参数 | status| string | Y |服务状态 | 请求参数 | limit| string | Y |分页查询 | 请求参数 | pageNo| string | Y |分页查询 - 接口描述和参数说明 接口描述 | **导出服务记录** ---|--- URL | /wechat\_api/servicerecord/downLoad 请求方式 | get 请求参数 | 返回值 | 返回一个文件 | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | - 接口描述和参数说明 接口描述 | **修改并保存记录** ---|--- URL | /wechat\_api/servicerecord/dosave 请求方式 | get 请求参数 | {recordId:"",noticeTime:"",serviceNote:"",remark:""} 返回值 | {"msg":"保存成功","code":200} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | recordId| Interger| Y |主键ID | 请求参数 | noticeTime| string | Y |提醒时间 | 请求参数 | serviceNote| string |Y | 服务内容 | 请求参数 | remark| string | Y |备注 - 接口描述和参数说明 接口描述 | **删除服务记录** ---|--- URL | /wechat\_api/servicerecord/delrecord 请求方式 | get 请求参数 | {recordId:"22835"} 返回值 | {"msg":"删除成功","code":200} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | recordId| Interger| Y |主键ID - 接口描述和参数说明 接口描述 | **查看服务聊天记录** ---|--- URL | /wechat\_api/message/getRedisMessageRecord 请求方式 | get 请求参数 | {adminUserId=33726&wechatUserIds=13806&wechatContactIds=19564131&beginTime=&endTime=&limit=&pageNo=} 返回值 | {"code":200,"data":[{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":99379682,"msgId":"2398357200474695174","content":"大股东非固定","fromUserName":"wxid_oo8w553uj5g612","fromUserNickName":"售前-陶成","toUserName":"wxid_mjxv8kbxje8b22","toUserNickName":"小陶同学","msgType":1,"fromUserId":19564130,"toUserId":47930186,"ownerUserId":47930186,"createTime":1565075152000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","sendStatus":1,"uin":"663329897"},{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":99379653,"msgId":"3613973959463708623","content":"是打发","fromUserName":"wxid_oo8w553uj5g612","fromUserNickName":"售前-陶成","toUserName":"wxid_mjxv8kbxje8b22","toUserNickName":"小陶同学","msgType":1,"fromUserId":19564130,"toUserId":47930186,"ownerUserId":47930186,"createTime":1565075151000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","sendStatus":1,"uin":"663329897"},{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":99379596,"msgId":"3508111703806335922","content":"第三方三房","fromUserName":"wxid_oo8w553uj5g612","fromUserNickName":"售前-陶成","toUserName":"wxid_mjxv8kbxje8b22","toUserNickName":"小陶同学","msgType":1,"fromUserId":19564130,"toUserId":47930186,"ownerUserId":47930186,"createTime":1565075148000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","sendStatus":1,"uin":"663329897"},{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":99055963,"msgId":"4618648550515805457","content":"How are you?","fromUserName":"wxid_mjxv8kbxje8b22","fromUserNickName":"小陶同学","toUserName":"wxid_oo8w553uj5g612","toUserNickName":"售前-陶成","msgType":1,"fromUserId":47930186,"toUserId":19564130,"ownerUserId":47930186,"createTime":1565061537000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","uin":"663329897"},{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":99055912,"msgId":"4483691397658598556","content":"aaa","fromUserName":"wxid_mjxv8kbxje8b22","fromUserNickName":"小陶同学","toUserName":"wxid_oo8w553uj5g612","toUserNickName":"售前-陶成","msgType":1,"fromUserId":47930186,"toUserId":19564130,"ownerUserId":47930186,"createTime":1565061535000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","uin":"663329897"},{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":98967446,"msgId":"6932345178608546118","content":"你好啊","fromUserName":"wxid_mjxv8kbxje8b22","fromUserNickName":"小陶同学","toUserName":"wxid_oo8w553uj5g612","toUserNickName":"售前-陶成","msgType":1,"fromUserId":47930186,"toUserId":19564130,"ownerUserId":47930186,"createTime":1565058019000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","uin":"663329897"},{"page":{"pageNo":1,"pageSize":-1,"count":0,"content":[],"html":"<ul>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">&#171; 上一页</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">1</a></li>\n<li><a href=\"javascript:\" onclick=\"page(0,-1,'');\">下一页 &#187;</a></li>\n<li class=\"disabled controls\"><a href=\"javascript:\">当前 <input type=\"text\" value=\"1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,-1,'');\" onclick=\"this.select();\"/> / <input type=\"text\" value=\"-1\" onkeypress=\"var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value,'');\" onclick=\"this.select();\"/> 条,共 0 条</a></li>\n</ul>\n<div style=\"clear:both;\"></div>","firstResult":0,"maxResults":-1},"sqlMap":{},"messageId":98967142,"msgId":"9186016863837812392","content":"我通过了你的朋友验证请求,现在我们可以开始聊天了","fromUserName":"wxid_mjxv8kbxje8b22","fromUserNickName":"小陶同学","toUserName":"wxid_oo8w553uj5g612","toUserNickName":"售前-陶成","msgType":1,"fromUserId":47930186,"toUserId":19564130,"ownerUserId":47930186,"createTime":1565058006000,"wechatUserId":13806,"wechatUserNickName":"售前-陶成","uin":"663329897"}],"pageNo":1,"count":7} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | adminUserId| string | Y |管理员账号ID | 请求参数 | wechatUserIds| string | Y |微信号的ID | 请求参数 | wechatContactIds| string | Y |微信联系人ID | 请求参数 | beginTime| string | Y |开始时间 | 请求参数 | endTime| string | Y |结束时间 | 请求参数 | limit和pageNo| string | Y |分页