-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattendance_groups_mdoel.go
172 lines (159 loc) · 4.82 KB
/
attendance_groups_mdoel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
package godingtalk
type AttendanceGetsimplegroupsResp struct {
Base
Result struct {
HasMore bool `json:"has_more"`
Groups []struct {
GroupID int `json:"group_id"`
IsDefault bool `json:"is_default"`
GroupName string `json:"group_name"`
SelectedClass []struct {
Setting struct {
ClassSettingID int `json:"class_setting_id"`
RestBeginTime struct {
CheckTime string `json:"check_time"`
} `json:"rest_begin_time"`
PermitLateMinutes int `json:"permit_late_minutes"`
WorkTimeMinutes int `json:"work_time_minutes"`
RestEndTime struct {
CheckTime string `json:"check_time"`
} `json:"rest_end_time"`
AbsenteeismLateMinutes int `json:"absenteeism_late_minutes"`
SeriousLateMinutes int `json:"serious_late_minutes"`
IsOffDutyFreeCheck string `json:"is_off_duty_free_check"`
} `json:"setting"`
ClassID int `json:"class_id"`
Sections []struct {
Times []struct {
CheckTime string `json:"check_time"`
CheckType string `json:"check_type"`
Across int `json:"across"`
} `json:"times"`
} `json:"sections"`
ClassName string `json:"class_name"`
} `json:"selected_class"`
Type string `json:"type"`
MemberCount int `json:"member_count"`
DefaultClassID int `json:"default_class_id"`
WorkDayList []string `json:"work_day_list"`
ClassesList []string `json:"classes_list"`
ManagerList []string `json:"manager_list"`
DeptNameList []string `json:"dept_name_list"`
} `json:"groups"`
} `json:"result"`
}
type AttendanceGetsimplegroupsReq struct {
Offset int64 `json:"offset"`
Size int64 `json:"size"`
}
type AttendanceGroupMinimalismListResp struct {
Result struct {
HasMore bool `json:"has_more"`
Cursor int `json:"cursor"`
Result []struct {
Name string `json:"name"`
ID int `json:"id"`
} `json:"result"`
} `json:"result"`
Base
}
type AttendanceGroupSearchResp struct {
Result []struct {
Name string `json:"name"`
ID int `json:"id"`
} `json:"result"`
Base
}
type AttendanceGroupQueryResp struct {
Result struct {
Name string `json:"name"`
ID int `json:"id"`
Wifis []string `json:"wifis"`
AddressList []string `json:"address_list"`
WorkDayList []int `json:"work_day_list"`
MemberCount int `json:"member_count"`
Type string `json:"type"`
URL string `json:"url"`
ManagerList string `json:"manager_list"`
} `json:"result"`
Success bool `json:"success"`
Base
}
type AttendanceGetusergroupResp struct {
Base
Result struct {
Name string `json:"name"`
GroupID int `json:"group_id"`
Type string `json:"type"`
Classes []struct {
ClassID int `json:"class_id"`
Name string `json:"name"`
Sections []struct {
Times []struct {
CheckTime string `json:"check_time"`
CheckType string `json:"check_type"`
Across int `json:"across"`
BeginMin int `json:"begin_min"`
EndMin int `json:"end_min"`
} `json:"times"`
} `json:"sections"`
Setting struct {
RestBeginTime struct {
Across int `json:"across"`
BeginMin int `json:"begin_min"`
EndMin int `json:"end_min"`
CheckTime string `json:"check_time"`
CheckType string `json:"check_type"`
} `json:"rest_begin_time"`
RestEndTime struct {
Across int `json:"across"`
BeginMin int `json:"begin_min"`
EndMin int `json:"end_min"`
CheckTime string `json:"check_time"`
CheckType string `json:"check_type"`
} `json:"rest_end_time"`
} `json:"setting"`
} `json:"classes"`
} `json:"result"`
}
type AttendanceGroupMemberuserListResp struct {
Base
Result struct {
HasMore bool `json:"has_more"`
Cursor interface{} `json:"cursor"`
Result []string `json:"result"`
} `json:"result"`
}
type AttendanceGroupMemberListbyidsResp struct {
Base
Result []string `json:"result"`
}
type AttendanceGroupMemberUpdateResp struct {
Base
}
type GroupMemberUpdateParam struct {
AddDepts []string `json:"add_depts"`
RemoveDepts []string `json:"remove_depts"`
AddUsers []string `json:"add_users"`
RemoveUsers []string `json:"remove_users"`
AddExtraUsers []string `json:"add_extra_users"`
RemoveExtraUser []string `json:"remove_extra_user"`
}
type AttendanceGroupMemberUpdateReq struct {
OpUserID string `json:"op_user_id"`
ScheduleFlag int64 `json:"schedule_flag"`
GroupID int64 `json:"group_id"`
UpdateParam GroupMemberUpdateParam `json:"Object"`
}
type AttendanceGroupMemberListResp struct {
Base
Result struct {
HasMore bool `json:"has_more"`
Cursor interface{} `json:"cursor"`
Result []struct {
AtcFlag string `json:"atc_flag"`
Type string `json:"type"`
MemberID string `json:"member_id"`
} `json:"result"`
} `json:"result"`
}