mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 18:48:10 +08:00
feat(work): 新增智慧硬件相关接口
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"device_sn_list": ["SN"],
|
||||
"rule_name": "access_rule_name_xxx",
|
||||
"pass_rule": {
|
||||
"rule_list": [
|
||||
"9:00-10:00 * * 1-5 *",
|
||||
"9:00-10:00,15:30-17:45 * * 0,6 *"
|
||||
],
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"remote_pass_rule": {
|
||||
"rule_list": [
|
||||
"9:00-10:00 * * 1-5 *",
|
||||
"9:00-10:00,15:30-17:45 * * 0,6 *"
|
||||
],
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"rule_id": "xxx",
|
||||
"invalid_list": []
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"rule_id": "xxx"
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"device_sn": "SN"
|
||||
}
|
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"pass_rule": {
|
||||
"items": [
|
||||
{
|
||||
"rule_id": "xxx",
|
||||
"name": "rule_name",
|
||||
"rule_list": [
|
||||
"9:00-10:00 * * 1-5 *",
|
||||
"16:00-19:05 * * 6 *",
|
||||
"20:00-21:30 * * 0 *"
|
||||
],
|
||||
"effect_time": 1542874137,
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rule_id": "xxq",
|
||||
"rule_list": ["9:300-10:00 * * 6 *"],
|
||||
"effect_time": 1542874137,
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"remote_pass_rule": {
|
||||
"items": [
|
||||
{
|
||||
"rule_id": "xxx",
|
||||
"name": "rule_name",
|
||||
"rule_list": ["9:00-10:00 * * 1-5 *", "11:00-12:00 * * 6,0 *"],
|
||||
"effect_time": 1542874137,
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rule_id": "xxq",
|
||||
"rule_list": ["9:300-10:00 * * 6 *"],
|
||||
"effect_time": 1542874137,
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"rule_id": "xxx",
|
||||
"device_sn_list": ["SN"],
|
||||
"rule_name": "access_rule_name_xxx",
|
||||
"pass_rule": {
|
||||
"rule_list": [
|
||||
"9:00-10:00 * * 1-5 *",
|
||||
"9:00-10:00,15:30-17:45 * * 0,6 *"
|
||||
],
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"remote_pass_rule": {
|
||||
"rule_list": [
|
||||
"9:00-10:00 * * 1-5 *",
|
||||
"9:00-10:00,15:30-17:45 * * 0,6 *"
|
||||
],
|
||||
"effect_open_userid_list": [
|
||||
{
|
||||
"open_userid": "user1",
|
||||
"user_type": 0
|
||||
},
|
||||
{
|
||||
"open_userid": "user2",
|
||||
"user_type": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"invalid_list": []
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"user_type": 0,
|
||||
"begin_time": 12345,
|
||||
"end_time": 67890,
|
||||
"data_filter_type": 1,
|
||||
"device_sn_list": ["SN1", "SN2"],
|
||||
"open_userid_list": [],
|
||||
"cursor": "CURSOR",
|
||||
"limit": 0,
|
||||
"agentid": 10000
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"accesscontrol_data": {
|
||||
"items": [
|
||||
{
|
||||
"open_userid": "userid1",
|
||||
"user_type": 0,
|
||||
"timestamp": 1662697304,
|
||||
"pass_type": 1,
|
||||
"pass_method": 0,
|
||||
"device_sn": "C00123122"
|
||||
},
|
||||
{
|
||||
"open_userid": "userid2",
|
||||
"user_type": 0,
|
||||
"timestamp": 1662697304,
|
||||
"pass_type": 1,
|
||||
"pass_method": 0,
|
||||
"device_sn": "C00123122"
|
||||
}
|
||||
]
|
||||
},
|
||||
"next_cursor": "FVXbiWcnRUTZ8ZBzI905eQ=="
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"agentid": 1
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"device_list": {
|
||||
"item": [
|
||||
{
|
||||
"device_sn": "SN",
|
||||
"remark_name": "设备备注名",
|
||||
"default_name": "设备出厂名",
|
||||
"model_name": "PRODUCT_MODEL",
|
||||
"device_type": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"user_type": 0,
|
||||
"begin_time": 12345,
|
||||
"end_time": 67890,
|
||||
"data_filter_type": 1,
|
||||
"device_sn_list": ["SN1", "SN2"],
|
||||
"cursor": "CURSOR",
|
||||
"limit": 0,
|
||||
"agentid": 10000
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"checkindata": {
|
||||
"items": [
|
||||
{
|
||||
"open_userid": "x1",
|
||||
"checkin_time": 12345,
|
||||
"device_sn": "SN"
|
||||
}
|
||||
]
|
||||
},
|
||||
"next_cursor": "NEXT_CURSOR"
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"user_type": 0,
|
||||
"begin_time": 12345,
|
||||
"end_time": 67890,
|
||||
"data_filter_type": 1,
|
||||
"device_sn_list": ["SN1", "SN2"],
|
||||
"open_userid_list": [],
|
||||
"cursor": "CURSOR",
|
||||
"limit": 0,
|
||||
"agentid": 10000
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"temperature_data": {
|
||||
"items": [
|
||||
{
|
||||
"open_userid": "userid1",
|
||||
"user_type": 0,
|
||||
"timestamp": 1662697304,
|
||||
"temperature": "36.7",
|
||||
"status": 0,
|
||||
"device_sn": "C00123122"
|
||||
},
|
||||
{
|
||||
"open_userid": "userid2",
|
||||
"user_type": 0,
|
||||
"timestamp": 1662697304,
|
||||
"temperature": "36.7",
|
||||
"status": 0,
|
||||
"device_sn": "C00123122"
|
||||
}
|
||||
]
|
||||
},
|
||||
"next_cursor": "FVXbiWcnRUTZ8ZBzI905eQ=="
|
||||
}
|
Reference in New Issue
Block a user