# 子账号管理模块
## **Web端交互**
> *****
![(images/screenshot_1567145572362.png)](https://img.kancloud.cn/ba/28/ba28521bdf5a94bf29a8f01caa21ab4c_1097x790.png)
## **API相关文档**
> ******
接口描述 | **新增子账号**
---|---
URL | /wechat\_api/admin/save
请求方式 | post
请求参数 | {userName:"zizhanghao0",phone:"12345678333",realName:"000",limitWx:"5",position:"2",departId:"6778",password:"123456",rePassword:"123456",canOfflineWx:"1",canDeleteWx:"1",adminUserStatusCd:"101"}
返回值 |{"code":200}
返回值 |{"msg":"添加成功","code":200}
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | userName| string | Y |子账号名
| 请求参数 | phone| string| Y |子账号联系手机号
| 请求参数 | realName| string| Y |真实姓名(联系人)
| 请求参数 | limitWx| string | Y |微信数量
| 请求参数 | position| string| Y |角色,1,经理,2,职员
| 请求参数 | departId| string| Y |部门ID
| 请求参数 | password| string | Y |密码
| 请求参数 | rePassword| string| Y |确认密码
| 请求参数 | canOfflineWx| string| Y |可下线微信号
| 请求参数 | canDeleteWx| string| Y |可删除微信号
| 请求参数 | adminUserStatusCd| string| Y |100:禁用 101:启用 -1:删除
> *****
接口描述 | **修改子账号信息**
---|---
URL | /wechat\_api/admin/save
请求方式 | post
请求参数 | {adminUserId:"35088"userName:"zizhanghao0",phone:"12345678333",realName:"000",limitWx:"5",position:"2",departId:"6779",password:"123456",rePassword:"123456",canOfflineWx:"1",canDeleteWx:"1",adminUserStatusCd:"101"}
返回值 |{"msg":"更新成功","code":200}
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | adminUserId| string |Y | 管理员用户ID
| 请求参数 | userName| string | Y |子账号用户名
| 请求参数 | phone| string| Y |子账号联系电话
| 请求参数 | realName| string| Y |真实姓名(联系人)
| 请求参数 | limitWx| string | Y |微信数量
| 请求参数 | position| string| Y |角色,1,经理,2,职员
| 请求参数 | departId| string| Y |部门ID
| 请求参数 | password| string | Y |密码
| 请求参数 | rePassword| string| Y |确认密码
| 请求参数 | canOfflineWx| string| Y |可下线微信号
| 请求参数 | canDeleteWx| string| Y |可删除微信号
| 请求参数 | adminUserStatusCd| string| Y |100:禁用 101:启用 -1:删除,99
> *****
接口描述 | **通过部门获取子账号列表**
---|---
URL | /wechat\_api/admin/getChildAdminListByDepart
请求方式 | get
请求参数 | departId:0
返回值 |{"code":200,"msg":"操作成功!","data":{"childAdminList":[{"adminUserId":35088,"userName":"zizhanghao0","realName":"xiaoxiao","lastLoginTime":null,"lastLoginIp":null,"adminUserStatusCd":101,"createTime":"2019-08-07 10:41:17","lastReadNoticeTime":null,"userType":null,"sourceAdminUserId":33726,"serverId":"Ipad_guangzhou_010","limitWx":"5","departId":6779,"position":2,"departName":"后勤部门","source":null,"ok95UserId":null,"ok95BusinessId":null,"openTag":null,"openGroup":null,"isReadGroup":null,"theme":null,"newguide":null,"phone":"12345678333","canDeleteWx":1,"canOfflineWx":1,"canViewSentitiveWord":1,"parentId":0},{"adminUserId":34861,"userName":"zizhanghao8","realName":"888","lastLoginTime":"2019-08-06 13:39:39","lastLoginIp":"117.28.135.69","adminUserStatusCd":101,"createTime":"2019-08-06 11:10:05","lastReadNoticeTime":null,"userType":null,"sourceAdminUserId":33726,"serverId":"Ipad_guangzhou_010","limitWx":"5","departId":6778,"position":1,"departName":"财务部门","source":null,"ok95UserId":null,"ok95BusinessId":null,"openTag":null,"openGroup":null,"isReadGroup":null,"theme":null,"newguide":null,"phone":"13476673610","canDeleteWx":1,"canOfflineWx":1,"canViewSentitiveWord":1,"parentId":0},{"adminUserId":34860,"userName":"zizhanghao7","realName":"777","lastLoginTime":null,"lastLoginIp":null,"adminUserStatusCd":101,"createTime":"2019-08-06 11:09:16","lastReadNoticeTime":null,"userType":null,"sourceAdminUserId":33726,"serverId":"Ipad_guangzhou_010","limitWx":"0","departId":6776,"position":1,"departName":"研发部门","source":null,"ok95UserId":null,"ok95BusinessId":null,"openTag":null,"openGroup":null,"isReadGroup":null,"theme":null,"newguide":null,"phone":"13476673699","canDeleteWx":1,"canOfflineWx":1,"canViewSentitiveWord":1,"parentId":0},{"adminUserId":34859,"userName":"zizhanghao6","realName":"666","lastLoginTime":null,"lastLoginIp":null,"adminUserStatusCd":101,"createTime":"2019-08-06 11:08:29","lastReadNoticeTime":null,"userType":null,"sourceAdminUserId":33726,"serverId":"Ipad_guangzhou_010","limitWx":"5","departId":0,"position":1,"d
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | departId| string | Y |部门ID
> *****
接口描述 | **获取管理员**
---|---
URL | /wechat\_api/coord/findAlladminUser
请求方式 | get
请求参数 |
返回值 |{"code":200,"msg":"操作成功!","data":[{"adminUserId":33726,"realName":"陶成","userName":"13476673692"},{"adminUserId":33847,"realName":"sss00","userName":"sss"},{"adminUserId":34854,"realName":"111","userName":"zizhanghao1"},{"adminUserId":34855,"realName":"222","userName":"zizhanghao2"},{"adminUserId":34856,"realName":"333","userName":"zizhanghao3"},{"adminUserId":34857,"realName":"444","userName":"zizhanghao4"},{"adminUserId":34858,"realName":"555","userName":"zizhanghao5"},{"adminUserId":34859,"realName":"666","userName":"zizhanghao6"},{"adminUserId":34860,"realName":"777","userName":"zizhanghao7"},{"adminUserId":34861,"realName":"888","userName":"zizhanghao8"},{"adminUserId":35088,"realName":"xiaoxiao","userName":"zizhanghao0"}]}
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
> *****
接口描述 | **添加或编辑账号**
---|---
URL | /wechat\_api/admin/save
请求方式 | post
请求参数 | {userName: "AA", phone: "13476673666", realName: "AA", limitWx: "5", position: 1, departId: "6776",…}adminUserStatusCd: 101 canDeleteWx: 1 canOfflineWx: 1 departId: "6776" limitWx: "5" password: "123456" phone: "13476673666" position: 1 rePassword: "123456" realName: "AA" userName: "AA"
返回值 |{"code":400,"msg":"该帐号已存在!","data":null}
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | userName| string | Y |新建账号usrName
| 请求参数 | phone| string | Y | 手机号码
| 请求参数 | realName| string | Y |姓名
| 请求参数 | limitWx| string | Y |微信号个数
| 请求参数 | position| string | Y |角色
| 请求参数 | departId| string | Y |部门ID
| 请求参数 | adminUserStatusCd| Interger| Y |
| 请求参数 | canDeleteWx| string | Y |能否删除微信号
| 请求参数 | canOfflineWx| string | Y |能否下线微信号
| 请求参数 | password| string | Y |密码
> *****
接口描述 | **禁用子账号**
---|---
URL | /wechat\_api/admin/save
请求方式 | post
请求参数 | adminUserStatusCd: 100, adminUserId: 34855, userName: "zizhanghao2", realName: "222"}adminUserId: 34855 adminUserStatusCd: 100 realName: "222" userName: "zizhanghao2"
返回值 |{"code":200,"msg":"添加/修改成功!","data":null}
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | adminUserId| string | Y |子账号ID
| 请求参数 | userName| string | Y |新建账号usrName
| 请求参数 | realName| string | Y |姓名
| 请求参数 | adminUserStatusCd| Interger| Y |主账号状态
> *****
接口描述 | **删除子账号**
---|---
URL | /wechat\_api/admin/save
请求方式 | post
请求参数 | {adminUserStatusCd: -1, adminUserId: 34856, userName: "zizhanghao3", phone: "13476673695",…}adminUserId: 34856 adminUserStatusCd: -1 phone: "13476673695" realName: "333" userName: "zizhanghao3"
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | adminUserId| string | Y |子账号ID
| 请求参数 | userName| string | Y |新建账号usrName
| 请求参数 | phone| string | Y |手机号码
| 请求参数 | realName| string | Y |姓名
| 请求参数 | adminUserStatusCd| Interger| Y |主账号状态
> *****
接口描述 | **批量导入**
---|---
URL | /wechat\_api/admin/importChilaAccount
请求方式 | post
请求参数 | file:(binary)
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- |--- |
| 请求参数 | file| File| Y |导入的文件
- 首页
- 系统登录注册模块
- 登录模块
- 注册模块
- 忘记密码模块
- 功能首页渲染模块
- 会话面板模块
- 微信号登录模块
- 会话联系人模块
- 通讯录模块
- 聊天窗口模块
- 快捷回复模块
- 客户录入模块
- 群管理模块
- 历史消息面板模块
- 群发助手面板模块
- 群发设置模块
- 群发管理模块
- 群发演示模块
- 朋友圈面板模块
- 发朋友圈模块
- 朋友圈互动模块
- 朋友圈历史记录模块
- 客户管理面板模块
- 客户查询模块
- 服务记录模块
- 批量标签模块
- 标签管理模块
- 昵称管理模块
- 个性称呼模块
- 批量导入客户模块
- 报表面板模块
- 微信好友报表
- 被删好友报表
- 新增好友报表
- 添加好友报表
- 服务记录报表
- 转账记录报表
- 红包统计报表
- 会话统计报表
- 电话统计报表
- 标签统计报表
- 账号管理面板模块
- 微信号管理模块
- 部门管理模块
- 子账号管理模块
- 在线日志模块
- 机器人模块
- 自动通过好友模块
- 小程序商城模块
- 微信号分配模块
- 帮助中心面板模块
- 个人中心模块
- 我的账号模块
- 系统设置模块
- 第三方能力接口对接
- 第三方登录模块
- 联系人模块
- 系统账号模块
- 服务版本接口迭代说明
- 素材库
- 好友去重
- V群模块