mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 10:38:10 +08:00
feat(work): 新增管理打卡规则相关接口
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"effective_now": true,
|
||||
"group": {
|
||||
"grouptype": 1,
|
||||
"groupname": "打卡规则1",
|
||||
"checkindate": [
|
||||
{
|
||||
"workdays": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"checkintime": [
|
||||
{
|
||||
"time_id": 1,
|
||||
"work_sec": 36000,
|
||||
"off_work_sec": 43200,
|
||||
"remind_work_sec": 35400,
|
||||
"remind_off_work_sec": 43200,
|
||||
"earliest_work_sec": 35000,
|
||||
"latest_work_sec": 37000,
|
||||
"earliest_off_work_sec": 43000,
|
||||
"latest_off_work_sec": 43400
|
||||
}
|
||||
],
|
||||
"flex_on_duty_time": 0,
|
||||
"flex_off_duty_time": 0
|
||||
}
|
||||
],
|
||||
"sync_holidays": true,
|
||||
"need_photo": true,
|
||||
"note_can_use_local_pic": false,
|
||||
"wifimac_infos": [
|
||||
{
|
||||
"wifiname": "Tencent-WiFi-1",
|
||||
"wifimac": "c0:7b:bc:37:f8:d3"
|
||||
}
|
||||
],
|
||||
"allow_checkin_offworkday": true,
|
||||
"allow_apply_offworkday": true,
|
||||
"loc_infos": [
|
||||
{
|
||||
"lat": 30547030,
|
||||
"lng": 104062890,
|
||||
"loc_title": "腾讯成都大厦",
|
||||
"loc_detail": "四川省成都市武侯区高新南区天府三街",
|
||||
"distance": 300
|
||||
}
|
||||
],
|
||||
"range": {
|
||||
"partyid": [],
|
||||
"userid": [
|
||||
"gongjuren",
|
||||
"tester"
|
||||
],
|
||||
"tagid": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"white_users": [
|
||||
"canno"
|
||||
],
|
||||
"type": 0,
|
||||
"reporterinfo": {
|
||||
"reporters": [
|
||||
{
|
||||
"userid": "brant"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ot_info_v2": {
|
||||
"workdayconf": {
|
||||
"allow_ot": true,
|
||||
"type": 0
|
||||
}
|
||||
},
|
||||
"allow_apply_bk_cnt": -1,
|
||||
"option_out_range": 0,
|
||||
"use_face_detect": false,
|
||||
"allow_apply_bk_day_limit": -1,
|
||||
"open_face_live_detect": true,
|
||||
"buka_limit_next_month": -1,
|
||||
"sync_out_checkin": true,
|
||||
"buka_remind": {
|
||||
"open_remind": true,
|
||||
"buka_remind_day": 28,
|
||||
"buka_remind_month": 0
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"groupid": 1,
|
||||
"clear_field": [ 1, 2, 3 ],
|
||||
"effective_now": true
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"groupid": 1,
|
||||
"effective_now": true
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"datetime": 1511971200,
|
||||
"useridlist": ["james", "paul"]
|
||||
}
|
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"info": [
|
||||
{
|
||||
"userid": "james",
|
||||
"group": {
|
||||
"grouptype": 1,
|
||||
"groupid": 69,
|
||||
"checkindate": [
|
||||
{
|
||||
"workdays": [1, 2, 3, 4, 5],
|
||||
"checkintime": [
|
||||
{
|
||||
"work_sec": 36000,
|
||||
"off_work_sec": 43200,
|
||||
"remind_work_sec": 35400,
|
||||
"remind_off_work_sec": 43200
|
||||
},
|
||||
{
|
||||
"work_sec": 50400,
|
||||
"off_work_sec": 72000,
|
||||
"remind_work_sec": 49800,
|
||||
"remind_off_work_sec": 72000
|
||||
}
|
||||
],
|
||||
"flex_time": 300000,
|
||||
"noneed_offwork": true,
|
||||
"limit_aheadtime": 10800000,
|
||||
"flex_on_duty_time": 0,
|
||||
"flex_off_duty_time": 0
|
||||
}
|
||||
],
|
||||
"spe_workdays": [
|
||||
{
|
||||
"timestamp": 1512144000,
|
||||
"notes": "必须打卡的日期",
|
||||
"checkintime": [
|
||||
{
|
||||
"work_sec": 32400,
|
||||
"off_work_sec": 61200,
|
||||
"remind_work_sec": 31800,
|
||||
"remind_off_work_sec": 61200
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"spe_offdays": [
|
||||
{
|
||||
"timestamp": 1512057600,
|
||||
"notes": "不需要打卡的日期",
|
||||
"checkintime": []
|
||||
}
|
||||
],
|
||||
"sync_holidays": true,
|
||||
"groupname": "打卡规则1",
|
||||
"need_photo": true,
|
||||
"wifimac_infos": [
|
||||
{
|
||||
"wifiname": "Tencent-WiFi-1",
|
||||
"wifimac": "c0:7b:bc:37:f8:d3"
|
||||
},
|
||||
{
|
||||
"wifiname": "Tencent-WiFi-2",
|
||||
"wifimac": "70:10:5c:7d:f6:d5"
|
||||
}
|
||||
],
|
||||
"note_can_use_local_pic": false,
|
||||
"allow_checkin_offworkday": true,
|
||||
"allow_apply_offworkday": true,
|
||||
"loc_infos": [
|
||||
{
|
||||
"lat": 30547030,
|
||||
"lng": 104062890,
|
||||
"loc_title": "腾讯成都大厦",
|
||||
"loc_detail": "四川省成都市武侯区高新南区天府三街",
|
||||
"distance": 300
|
||||
},
|
||||
{
|
||||
"lat": 23097490,
|
||||
"lng": 113323750,
|
||||
"loc_title": "T.I.T创意园",
|
||||
"loc_detail": "广东省广州市海珠区新港中路397号",
|
||||
"distance": 300
|
||||
}
|
||||
],
|
||||
"schedulelist": [
|
||||
{
|
||||
"schedule_id": 221,
|
||||
"schedule_name": "2",
|
||||
"time_section": [
|
||||
{
|
||||
"time_id": 1,
|
||||
"work_sec": 32400,
|
||||
"off_work_sec": 61200,
|
||||
"remind_work_sec": 31800,
|
||||
"remind_off_work_sec": 61200,
|
||||
"rest_begin_time": 43200,
|
||||
"rest_end_time": 46800,
|
||||
"allow_rest": false
|
||||
}
|
||||
],
|
||||
"limit_aheadtime": 14400000,
|
||||
"noneed_offwork": false,
|
||||
"limit_offtime": 14400,
|
||||
"flex_on_duty_time": 0,
|
||||
"flex_off_duty_time": 0,
|
||||
"allow_flex": false,
|
||||
"late_rule": {
|
||||
"allow_offwork_after_time": false,
|
||||
"timerules": [
|
||||
{
|
||||
"offwork_after_time": 3600,
|
||||
"onwork_flex_time": 3600
|
||||
}
|
||||
]
|
||||
},
|
||||
"max_allow_arrive_early": 0,
|
||||
"max_allow_arrive_late": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"group": [
|
||||
{
|
||||
"grouptype": 1,
|
||||
"groupid": 69,
|
||||
"checkindate": [
|
||||
{
|
||||
"workdays": [1, 2, 3, 4, 5],
|
||||
"checkintime": [
|
||||
{
|
||||
"work_sec": 36000,
|
||||
"off_work_sec": 43200,
|
||||
"remind_work_sec": 35400,
|
||||
"remind_off_work_sec": 43200
|
||||
},
|
||||
{
|
||||
"work_sec": 50400,
|
||||
"off_work_sec": 72000,
|
||||
"remind_work_sec": 49800,
|
||||
"remind_off_work_sec": 72000
|
||||
}
|
||||
],
|
||||
"noneed_offwork": true,
|
||||
"limit_aheadtime": 10800000,
|
||||
"flex_on_duty_time": 0,
|
||||
"flex_off_duty_time": 0
|
||||
}
|
||||
],
|
||||
"spe_workdays": [
|
||||
{
|
||||
"timestamp": 1512144000,
|
||||
"notes": "必须打卡的日期",
|
||||
"checkintime": [
|
||||
{
|
||||
"work_sec": 32400,
|
||||
"off_work_sec": 61200,
|
||||
"remind_work_sec": 31800,
|
||||
"remind_off_work_sec": 61200
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"spe_offdays": [
|
||||
{
|
||||
"timestamp": 1512057600,
|
||||
"notes": "不需要打卡的日期",
|
||||
"checkintime": []
|
||||
}
|
||||
],
|
||||
"sync_holidays": true,
|
||||
"groupname": "打卡规则1",
|
||||
"need_photo": true,
|
||||
"wifimac_infos": [
|
||||
{
|
||||
"wifiname": "Tencent-WiFi-1",
|
||||
"wifimac": "c0:7b:bc:37:f8:d3"
|
||||
},
|
||||
{
|
||||
"wifiname": "Tencent-WiFi-2",
|
||||
"wifimac": "70:10:5c:7d:f6:d5"
|
||||
}
|
||||
],
|
||||
"note_can_use_local_pic": false,
|
||||
"allow_checkin_offworkday": true,
|
||||
"allow_apply_offworkday": true,
|
||||
"loc_infos": [
|
||||
{
|
||||
"lat": 30547030,
|
||||
"lng": 104062890,
|
||||
"loc_title": "腾讯成都大厦",
|
||||
"loc_detail": "四川省成都市武侯区高新南区天府三街",
|
||||
"distance": 300
|
||||
},
|
||||
{
|
||||
"lat": 23097490,
|
||||
"lng": 113323750,
|
||||
"loc_title": "T.I.T创意园",
|
||||
"loc_detail": "广东省广州市海珠区新港中路397号",
|
||||
"distance": 300
|
||||
}
|
||||
],
|
||||
"range": {
|
||||
"partyid": [],
|
||||
"userid": ["icef", "LiJingZhong"],
|
||||
"tagid": [2]
|
||||
},
|
||||
"create_time": 1606204343,
|
||||
"white_users": ["canno"],
|
||||
"type": 0,
|
||||
"reporterinfo": {
|
||||
"reporters": [
|
||||
{
|
||||
"userid": "brant"
|
||||
}
|
||||
],
|
||||
"updatetime": 1606305508
|
||||
},
|
||||
"ot_info": {
|
||||
"type": 2,
|
||||
"allow_ot_workingday": true,
|
||||
"allow_ot_nonworkingday": false,
|
||||
"otcheckinfo": {
|
||||
"ot_workingday_time_start": 1800,
|
||||
"ot_workingday_time_min": 1800,
|
||||
"ot_workingday_time_max": 14400,
|
||||
"ot_nonworkingday_time_min": 1800,
|
||||
"ot_nonworkingday_time_max": 14400,
|
||||
"ot_workingday_restinfo": {
|
||||
"type": 2,
|
||||
"fix_time_rule": {
|
||||
"fix_time_begin_sec": 43200,
|
||||
"fix_time_end_sec": 46800
|
||||
},
|
||||
"cal_ottime_rule": {
|
||||
"items": [
|
||||
{
|
||||
"ot_time": 18000,
|
||||
"rest_time": 3600
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ot_nonworkingday_restinfo": {
|
||||
"type": 2,
|
||||
"fix_time_rule": {
|
||||
"fix_time_begin_sec": 43200,
|
||||
"fix_time_end_sec": 46800
|
||||
},
|
||||
"cal_ottime_rule": {
|
||||
"items": [
|
||||
{
|
||||
"ot_time": 18000,
|
||||
"rest_time": 3600
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ot_nonworkingday_spanday_time": 0
|
||||
},
|
||||
"uptime": 1606275664,
|
||||
"otapplyinfo": {
|
||||
"allow_ot_workingday": true,
|
||||
"allow_ot_nonworkingday": true,
|
||||
"uptime": 1606275664,
|
||||
"ot_workingday_restinfo": {
|
||||
"type": 2,
|
||||
"fix_time_rule": {
|
||||
"fix_time_begin_sec": 43200,
|
||||
"fix_time_end_sec": 46800
|
||||
},
|
||||
"cal_ottime_rule": {
|
||||
"items": [
|
||||
{
|
||||
"ot_time": 18000,
|
||||
"rest_time": 3600
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ot_nonworkingday_restinfo": {
|
||||
"type": 2,
|
||||
"fix_time_rule": {
|
||||
"fix_time_begin_sec": 43200,
|
||||
"fix_time_end_sec": 46800
|
||||
},
|
||||
"cal_ottime_rule": {
|
||||
"items": [
|
||||
{
|
||||
"ot_time": 18000,
|
||||
"rest_time": 3600
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ot_nonworkingday_spanday_time": 0
|
||||
}
|
||||
},
|
||||
"allow_apply_bk_cnt": -1,
|
||||
"option_out_range": 0,
|
||||
"create_userid": "gaogao",
|
||||
"use_face_detect": false,
|
||||
"allow_apply_bk_day_limit": -1,
|
||||
"update_userid": "sandy",
|
||||
"schedulelist": [
|
||||
{
|
||||
"schedule_id": 221,
|
||||
"schedule_name": "2",
|
||||
"time_section": [
|
||||
{
|
||||
"time_id": 1,
|
||||
"work_sec": 32400,
|
||||
"off_work_sec": 61200,
|
||||
"remind_work_sec": 31800,
|
||||
"remind_off_work_sec": 61200,
|
||||
"rest_begin_time": 43200,
|
||||
"rest_end_time": 46800,
|
||||
"allow_rest": false
|
||||
}
|
||||
],
|
||||
"limit_aheadtime": 14400000,
|
||||
"noneed_offwork": false,
|
||||
"limit_offtime": 14400,
|
||||
"flex_on_duty_time": 0,
|
||||
"flex_off_duty_time": 0,
|
||||
"allow_flex": false,
|
||||
"late_rule": {
|
||||
"allow_offwork_after_time": false,
|
||||
"timerules": [
|
||||
{
|
||||
"offwork_after_time": 3600,
|
||||
"onwork_flex_time": 3600
|
||||
}
|
||||
]
|
||||
},
|
||||
"max_allow_arrive_early": 0,
|
||||
"max_allow_arrive_late": 0
|
||||
}
|
||||
],
|
||||
"offwork_interval_time": 300
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"effective_now": true,
|
||||
"group": {
|
||||
"groupid": 1,
|
||||
"grouptype": 1,
|
||||
"groupname": "打卡规则1",
|
||||
"checkindate": [
|
||||
{
|
||||
"workdays": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"checkintime": [
|
||||
{
|
||||
"time_id": 1,
|
||||
"work_sec": 36000,
|
||||
"off_work_sec": 43200,
|
||||
"remind_work_sec": 35400,
|
||||
"remind_off_work_sec": 43200,
|
||||
"earliest_work_sec": 35000,
|
||||
"latest_work_sec": 37000,
|
||||
"earliest_off_work_sec": 43000,
|
||||
"latest_off_work_sec": 43400
|
||||
}
|
||||
],
|
||||
"flex_on_duty_time": 0,
|
||||
"flex_off_duty_time": 0
|
||||
}
|
||||
],
|
||||
"sync_holidays": true,
|
||||
"need_photo": true,
|
||||
"note_can_use_local_pic": false,
|
||||
"wifimac_infos": [
|
||||
{
|
||||
"wifiname": "Tencent-WiFi-1",
|
||||
"wifimac": "c0:7b:bc:37:f8:d3"
|
||||
}
|
||||
],
|
||||
"allow_checkin_offworkday": true,
|
||||
"allow_apply_offworkday": true,
|
||||
"loc_infos": [
|
||||
{
|
||||
"lat": 30547030,
|
||||
"lng": 104062890,
|
||||
"loc_title": "腾讯成都大厦",
|
||||
"loc_detail": "四川省成都市武侯区高新南区天府三街",
|
||||
"distance": 300
|
||||
}
|
||||
],
|
||||
"range": {
|
||||
"partyid": [],
|
||||
"userid": [
|
||||
"gongjuren",
|
||||
"tester"
|
||||
],
|
||||
"tagid": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"white_users": [
|
||||
"canno"
|
||||
],
|
||||
"type": 0,
|
||||
"reporterinfo": {
|
||||
"reporters": [
|
||||
{
|
||||
"userid": "brant"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ot_info_v2": {
|
||||
"workdayconf": {
|
||||
"allow_ot": true,
|
||||
"type": 0
|
||||
}
|
||||
},
|
||||
"allow_apply_bk_cnt": -1,
|
||||
"option_out_range": 0,
|
||||
"use_face_detect": false,
|
||||
"allow_apply_bk_day_limit": -1,
|
||||
"open_face_live_detect": true,
|
||||
"buka_limit_next_month": -1,
|
||||
"sync_out_checkin": true,
|
||||
"buka_remind": {
|
||||
"open_remind": true,
|
||||
"buka_remind_day": 28,
|
||||
"buka_remind_month": 0
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user