feat(attendance): add single-record edit and delete APIs

- Add PUT /attendance-records/:id to update status and remark
- Add DELETE /attendance-records/:id to remove a record
- Enforce campus scope on both operations
- Log edit/delete actions via OperationLogsService
This commit is contained in:
2026-07-06 17:39:16 +08:00
parent 85872d6564
commit ba34c09be4
3 changed files with 100 additions and 0 deletions

View File

@@ -126,6 +126,17 @@ export class MatchDingRecordDto {
studentId: number;
}
export class UpdateAttendanceRecordDto {
@IsOptional()
@IsString()
@IsIn(['present', 'late', 'absent', 'leave'])
status?: string;
@IsOptional()
@IsString()
remark?: string;
}
export class AttendanceReportQueryDto {
@IsOptional()
@IsInt()