fix
All checks were successful
Deploy on Master Change / deploy (push) Successful in 53s

This commit is contained in:
2026-07-03 17:59:02 +07:00
parent 0fa4a9aae2
commit 96391b0706
13 changed files with 10448 additions and 100 deletions

View File

@@ -722,6 +722,21 @@ export const apiFetchOnlineStudents = async (rkId: number): Promise<{ onlineStud
return res.json();
};
export interface ScheduleConflictItem {
studentRkId: number;
fullName: string;
studentCode: string;
conflictClassRkId: number;
conflictClassName: string;
conflictClassCode: string;
}
export const apiFetchScheduleConflicts = async (rkId: number): Promise<{ conflicts: ScheduleConflictItem[]; ok: boolean }> => {
const res = await staffFetch(`/classes/${rkId}/schedule-conflicts`);
if (!res.ok) throw new Error('Failed to check schedule conflicts');
return res.json();
};
export const apiFetchClassCourses = async (rkId: number): Promise<{
data: ClassCourseItem[];
source?: string;