forked from wangziqi/gongxue-base
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user