mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(work): 新增硬件云端接入相关接口
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"device_sn": "SN1"
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"device_detail": {
|
||||
"model_name": "device_model",
|
||||
"default_name": "默认名",
|
||||
"qr_code": "https://open.work.weixin.qq.com/connect/hardware?hw_code=lS5***********",
|
||||
"bind_status": 1,
|
||||
"bind_corpinfo": {
|
||||
"open_corpid": "wpTD_dsdfsdfsdfsdfs1w",
|
||||
"corp_name": "测试企业"
|
||||
},
|
||||
"remark_name": "小区大门"
|
||||
}
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"user_item": [
|
||||
{ "open_userid": "张三", "user_type": 0 },
|
||||
{ "open_userid": "李四", "user_type": 2 }
|
||||
]
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"userinfo": {
|
||||
"useritems": [
|
||||
{
|
||||
"open_userid": "ww***********",
|
||||
"user_name": "张三",
|
||||
"user_type": 1,
|
||||
"pass_rule": {
|
||||
"rule_list": [
|
||||
{
|
||||
"id": 0,
|
||||
"rule": "9:00-10:00 * * 1-5 *",
|
||||
"effect_time": 1542874137
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"rule": "9:30-10:00 * * 6 *",
|
||||
"effect_time": 1542874137
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"cursor": "CURSOR",
|
||||
"limit": 100,
|
||||
"only_perm_version": false
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"next_cursor": "xxxx",
|
||||
"perm_version": 5,
|
||||
"userinfo": {
|
||||
"useritems": [
|
||||
{
|
||||
"open_userid": "ww***********",
|
||||
"user_name": "张三",
|
||||
"user_type": 1,
|
||||
"pass_rule": {
|
||||
"rule_list": [
|
||||
{
|
||||
"id": 0,
|
||||
"rule": "9:00-10:00 * * 1-5 *",
|
||||
"effect_time": 1542874137
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"rule": "9:30-10:00 * * 6 *",
|
||||
"effect_time": 1542874137
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"oper_id": "OPER_ID",
|
||||
"errcode": 1,
|
||||
"errmsg": "设备离线"
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"online_status": 1,
|
||||
"cur_version": "CURRENT_FIRMWARE",
|
||||
"upgradable_version": "UPGRADEABLE_CURRENT_FIRMWARE",
|
||||
"upgradable_version_desc": "重大升级"
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"oper_id": "OPER_ID",
|
||||
"errcode": 1,
|
||||
"errmsg": "设备离线",
|
||||
"cur_version": "CUR_VERSION"
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"oper_id": "OPER_ID",
|
||||
"type": "remote_open_door",
|
||||
"errcode": 2,
|
||||
"errmsg": "设备离线"
|
||||
}
|
Reference in New Issue
Block a user