多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 客户录入模块 ## **Web端交互** ![](https://img.kancloud.cn/7b/c1/7bc1e762c6ca8fcc25f4a0f06c259565_273x847.png) ## **API相关文档** ### ***客户资料*** 接口描述 | **获取客户录入资料** ---|--- URL | /wechat\_api/customer/getCustomer 请求方式 | get 请求参数 | wechatContactId:19564132 返回值 | {"code":200,"msg":"操作成功!","data":null} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | wechatContactId| string| Y | 微信联系人ID > ***** ### ***客户服务记录*** 接口描述 | **新增服务记录** ---|--- URL | /wechat\_api/servicerecord/dosave 请求方式 | post 请求参数 | {serviceType:"1843",noticeTime:"1565171400000",serviceNote:"看电视",remark:"看电视啊",wechatUserId:"57221",wechatContactId:"46916543",createTime:"1565173484502",servicePerson:"陶成",serviceTarget:"巫建平"} 返回值 | {"msg":"保存成功","code":200} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | serviceType| string| Y |服务类型 | 请求参数 | noticeTime| string | Y |提醒时间 | 请求参数 | serviceNote| string | Y |服务内容 | 请求参数 | remark| string | Y |备注 | 请求参数 | wechatUserId| string | Y |微信号ID | 请求参数 | wechatContactId| string | Y |联系人ID | 请求参数 | createTime| string | Y |创建时间 | 请求参数 | servicePerson| string | Y |服务创建人 | 请求参数 | serviceTarget| string | Y |服务目标 > ***** 接口描述 | **历史服务记录** ---|--- URL | /wechat\_api/servicerecord/recordList 请求方式 | get 请求参数 | {wechatUserIds:"57221",wechatContactIds:"46916543"} 返回值 | {"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":{},"serviceId":22841,"noticeTime":1565075880000,"createTime":1565077712000,"serviceType":"1843","serviceNote":"aa","servicePerson":"陶成","adminUserId":33726,"wechatUserId":13806,"serviceTarget":"小陶","wechatContactId":47930186,"remark":"aaaaaa","status":0,"realName":"13476673692(陶成)","nickName":"售前-陶成","contactName":"小陶同学","secName":"工作号","codeTypeDesc":"打篮球","wechatContactUserName":"wxid_mjxv8kbxje8b22"},{"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":{},"serviceId":22836,"serviceTime":1565077474000,"noticeTime":1565076240000,"createTime":1565076195000,"serviceType":"1844","serviceNote":"学习","servicePerson":"陶成","adminUserId":33726,"wechatUserId":13806,"serviceTarget":"小陶","wechatContactId":47930186,"remark":"学习","status":1,"realName":"13476673692(陶成)","nickName":"售前-陶成","contactName":"小陶同学","secName":"工作号","codeTypeDesc":"学习","wechatContactUserName":"wxid_mjxv8kbxje8b22"}],"pageNo":1,"count":2} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | wechatUserIds| string| Y |微信号ID | 请求参数 | wechatContactIds| string | Y |联系人ID > ***** 接口描述 | **获取服务记录提醒列表** ---|--- URL | /wechat\_api/servicerecord/noticeTimeRecordList 请求方式 | get 请求参数 | {wechatContactIds:,limit:"10",pageNo:"1"} 返回值 | {"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":{},"serviceId":22841,"noticeTime":1565075880000,"createTime":1565077712000,"serviceType":"1843","serviceNote":"aa","servicePerson":"陶成","adminUserId":33726,"wechatUserId":13806,"serviceTarget":"小陶","wechatContactId":47930186,"remark":"aaaaaa","status":0,"realName":"13476673692(陶成)","nickName":"售前-陶成","contactName":"小陶同学","secName":"工作号","codeTypeDesc":"打篮球","wechatContactUserName":"wxid_mjxv8kbxje8b22"}],"pageNo":1,"count":1} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | wechatContactIds| string| Y |联系人ID | 请求参数 | limit和pageNo| string | Y |分页参数 > ***** ### ***标签*** 接口描述 | **添加我的标签** ---|--- URL | /wechat\_api/tag/editTagInfo 请求方式 | post 请求参数 | {tagName:"xiao",isPub:"0"} 返回值 |{"msg":"操作成功!","code":200,"tagInfo":{"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":{},"tagId":43972,"tagName":"xiao","adminUserId":33726,"createTime":1565170775945,"isPub":0}} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | tagName| string | Y | 修改的标签名 | 请求参数 | isPub| string | Y | 是否公共 0:非公共,1 公共 2 部门 > ***** 接口描述 | **标签重命名** ---|--- URL | /wechat\_api/tag/editTagInfo 请求方式 | post 请求参数 | {tagName:"aaaeee",adminUserId:"33726",tagId:"43952",isPub:"0"} 返回值 |{"msg":"操作成功!","code":200,"tagInfo":{"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":{},"tagId":43952,"tagName":"aaaeee","adminUserId":33726,"isPub":0}} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | tagName| string | Y | 修改的标签名 | 请求参数 | adminUserId | string | Y | 管理员ID | 请求参数 | tagId| string | Y | 标签ID | 请求参数 | isPub| string | Y | 是否公共 0:非公共,1 公共 2 部门 > ***** 接口描述 | **删除标签** ---|--- URL | /wechat\_api/tag/delTagInfo 请求方式 | post 请求参数 | adminUserId: "33726", tagId:"42906", isPub:"0" 返回值 |{"msg":"删除成功!","code":200} | Sort | Param | Type | required | Description | | --- | --- | --- | --- |--- | | 请求参数 | adminUserId| string | 归属的管路员ID | 请求参数 | tagId| string | Y |标签ID | 请求参数 | isPub| string | Y |是否公众 0:非公共,1 公共 2 部门