File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,35 @@ struct AttendanceSummary {
30
30
}
31
31
```
32
32
33
+ ### Daily Count
34
+ Total Lab count for each date
35
+ ``` rust
36
+ pub struct DailyCount {
37
+ pub date : String ,
38
+ pub count : i64 ,
39
+ }
40
+ ```
41
+
42
+ ### Member Summary
43
+ Total lab members attended in the past 6 months
44
+ ``` rust
45
+ pub struct MemberAttendanceSummary {
46
+ pub id : i32 ,
47
+ pub name : String ,
48
+ pub present_days : i64 ,
49
+ }
50
+ ```
51
+
52
+ ### Attendance Report
53
+ Attendance report of the club members
54
+ ``` rust
55
+ pub struct AttendanceReport {
56
+ pub daily_count : Vec <DailyCount >,
57
+ pub member_attendance : Vec <MemberAttendanceSummary >,
58
+ pub max_days : i64 ,
59
+ }
60
+ ```
61
+
33
62
## Queries
34
63
35
64
### Get Attendance
@@ -64,6 +93,25 @@ query {
64
93
}
65
94
```
66
95
96
+ ### Get Attendance Report
97
+ Get Attendance report containing lab count and members attendance report of the past 6 months.
98
+ ` maxDays returns the count of days when lab was open in the past 6 months `
99
+ ``` graphql
100
+ query {
101
+ getAttendanceSummary (startDate :"2024-12-20" , endDate : " 2024-12-27" ){
102
+ memberAttendance {
103
+ name ,
104
+ presentDays
105
+ }
106
+ dailyCount {
107
+ date ,
108
+ count
109
+ }
110
+ maxDays
111
+ }
112
+ }
113
+ ```
114
+
67
115
### Mark Attendance
68
116
Record a member's attendance for the day.
69
117
You can’t perform that action at this time.
0 commit comments