获取用户信息
调用说明
- 请求参数
参数 | 类型 | 说明 | 备注 |
---|---|---|---|
fun | 字符串 | /config/user/info | 请求功能名 |
- httpGet请求示例
curl --request GET \
--url 'http://192.168.9.9:9911/api/config/user/info'
- httpPost请求示例
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'content-type: multipart/form-data' \
--form fun=/config/user/info
- httpPost json请求示例【websocket也可发送同样json请求】
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'Content-Type: application/json' \
--data '{
"fun": "/config/user/info",
"data": {
}
}'
响应结果
{
"data": {
"code": 0,
"id": "",
"pass": true,
"total_license": 0,
"local_total_license": 100,
"dev_num": 16,
"dev_online_num": 0,
"create_time": 1690800970000,
"overdue_time": 1683288910000,
"phone": "13999999999",
"utag": 2,
"info_clock_in_time": 60000,
"add_clock_in_time": 60000,
"info_time": 885192828,
"add_time": 0,
"utag_data": "",
"test_num": 100,
"user_state": 2,
"network_time": 1735124455463,
"message": "成功"
},
"status": 200,
"message": "成功",
"msgid": 0,
"fun": "/config/user/info"
}
- 响应data数据字段说明
字段 | 说明 | 备注 |
---|---|---|
total_license | 授权数 | - |
local_total_license | 测试授权数 | - |
create_time | 注册时间 | - |
overdue_time | 到期时间 | - |
user_state | 1正式授权,其它测试授权 | - |
pass | 验证通过 | - |
dev_num | 使用数 | - |
dev_online_num | 在线数 | - |
dev_num | 验证通过 | - |
utag | 子账号 | - |