import type { Request, Response } from 'express';
import StaffAttendanceService from '@/services/staff_attendance';

export async function listRecords(req: Request, res: Response): Promise<void> {
  const payload = await StaffAttendanceService.listRecords(
    req.query,
    req.currentUser,
  );
  res.status(200).send(payload);
}

export async function summary(req: Request, res: Response): Promise<void> {
  const payload = await StaffAttendanceService.summary(
    req.query,
    req.currentUser,
  );
  res.status(200).send(payload);
}
