多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 子账号管理模块 ## **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 |导入的文件