文档
测试

代理设置

POST
http://localhost/merchant/role/userList

接口描述

查看下级代理的相关信息,如其业务员、代理商、商户数量,密码线数量等

请求头

参数名
类型
描述
必填
code
string
示例:识别码
必填

请求参数

参数名
类型
描述
必填
page
int
页面
必填
page_size
int
页面大小
必填
role
string
角色 agency employee seller
必填
parent_role
string
上级角色 agency employee
必填
sub_id
string
角色id
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
object
数据字典
必填
total
int
统计数量 示例:4
必填
list
array
数据列表
必填
user_id
int
代理商id 示例:50
必填
name
string
代理商名称 示例:测试代理1000
必填
avatar
string
代理商头像 示例:https://charge-1259349663.cos.ap-guangzhou.myqcloud.com/screen/202008/15972838749570.png
必填
role
string
代理商角色 示例:agency
必填
rate
int
分成比例 示例:80
必填
can_edit
boolean
是否可以免密 示例:true
必填
can_delete
boolean
可以删除 示例:false
必填
device
array
设备 数据列表
必填
sub
array
下级数据 数据列表
必填
text
string
示例:代理商
必填
icon
string
示例:ic_role_agency.png
必填
role
string
角色 示例:agency
必填
id
int
id 示例:50
必填
num
int
数量 示例:1
必填
wired
array
数据列表
必填
text
string
示例:密码线
必填
num
int
数量 示例:2
必填
icon
string
示例:ic_device_all.png
必填
status
string
密码线状态 示例:all unbind
必填
role
string
角色 示例:agency
必填
id
int
id 示例:50
必填
msg
string
示例:用户列表
必填

说明 / 示例

{ "code": 1, "data": { "total": 4, "list": [{ "user_id": 50, "name": "测试代理1000", "avatar": "https:\/\/charge-1259349663.cos.ap-guangzhou.myqcloud.com\/screen\/202008\/15972838749570.png", "role": "agency", "rate": 80, "can_edit": true, "can_delete": false, "device": [], "sub": [{ "text": "代理商", "icon": "ic_role_agency.png", "role": "agency", "id": 50, "num": 1 }, { "text": "业务员", "icon": "ic_role_employee.png", "role": "employee", "id": 50, "num": 2 }, { "text": "店铺管理", "icon": "ic_role_seller.png", "role": "seller", "id": 50, "num": 2 }], "wired": [{ "text": "密码线", "num": 2, "icon": "ic_device_all.png", "status": "all", "role": "agency", "id": 50 }, { "text": "未绑密码线", "num": 1, "icon": "ic_device_unbind.png", "status": "unbind", "role": "agency", "id": 50 }] }, { "user_id": 61, "name": "测试(虚拟)", "avatar": "https:\/\/charge-1259349663.cos.ap-guangzhou.myqcloud.com\/screen\/202008\/15972838749570.png", "role": "agency", "rate": 60, "can_edit": true, "can_delete": false, "device": [], "sub": [{ "text": "代理商", "icon": "ic_role_agency.png", "role": "agency", "id": 61, "num": 0 }, { "text": "业务员", "icon": "ic_role_employee.png", "role": "employee", "id": 61, "num": 0 }, { "text": "店铺管理", "icon": "ic_role_seller.png", "role": "seller", "id": 61, "num": 0 }], "wired": [{ "text": "密码线", "num": 0, "icon": "ic_device_all.png", "status": "all", "role": "agency", "id": 61 }, { "text": "未绑密码线", "num": 0, "icon": "ic_device_unbind.png", "status": "unbind", "role": "agency", "id": 61 }] }, { "user_id": 62, "name": "测试代理1100", "avatar": "https:\/\/charge-1259349663.cos.ap-guangzhou.myqcloud.com\/screen\/202008\/15972838749570.png", "role": "agency", "rate": 90, "can_edit": true, "can_delete": false, "device": [], "sub": [{ "text": "代理商", "icon": "ic_role_agency.png", "role": "agency", "id": 62, "num": 0 }, { "text": "业务员", "icon": "ic_role_employee.png", "role": "employee", "id": 62, "num": 1 }, { "text": "店铺管理", "icon": "ic_role_seller.png", "role": "seller", "id": 62, "num": 1 }], "wired": [{ "text": "密码线", "num": 1, "icon": "ic_device_all.png", "status": "all", "role": "agency", "id": 62 }, { "text": "未绑密码线", "num": 1, "icon": "ic_device_unbind.png", "status": "unbind", "role": "agency", "id": 62 }] }, { "user_id": 72, "name": "大青蛙多", "avatar": "https:\/\/charge-1259349663.cos.ap-guangzhou.myqcloud.com\/screen\/202008\/15972838749570.png", "role": "agency", "rate": 12, "can_edit": true, "can_delete": false, "device": [], "sub": [{ "text": "代理商", "icon": "ic_role_agency.png", "role": "agency", "id": 72, "num": 0 }, { "text": "业务员", "icon": "ic_role_employee.png", "role": "employee", "id": 72, "num": 0 }, { "text": "店铺管理", "icon": "ic_role_seller.png", "role": "seller", "id": 72, "num": 0 }], "wired": [{ "text": "密码线", "num": 0, "icon": "ic_device_all.png", "status": "all", "role": "agency", "id": 72 }, { "text": "未绑密码线", "num": 0, "icon": "ic_device_unbind.png", "status": "unbind", "role": "agency", "id": 72 }] }] }, "msg": "用户列表" }