切换子账号
调用说明
- 请求参数
参数 | 类型 | 说明 | 备注 |
---|---|---|---|
fun | 字符串 | /config/user/switch | 请求功能名 |
id | 字符串 | 1到10 |
- httpGet请求示例
curl --request GET \
--url 'http://192.168.9.9:9911/api/config/user/switch?id=1'
- httpPost请求示例
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'content-type: multipart/form-data' \
--form fun=/config/user/switch \
--form id=2
- httpPost json请求示例【websocket也可发送同样json请求】
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'Content-Type: application/json' \
--data '{
"fun": "/config/user/switch",
"data": {
"id":"3"
}
}'
响应结果
{
"data": {
"code": 0,
"id": "2",
"message": "成功"
},
"status": 200,
"message": "成功",
"msgid": 0,
"fun": "/config/user/switch"
}
- 响应data数据字段说明
字段 | 说明 | 备注 |
---|---|---|
id | 子账号id | - |