feat(api): implement exam and grade synchronization modules
All checks were successful
Build Backend / build (push) Successful in 2m18s
Build Backend / build-docker (push) Successful in 1m20s

Add new functionality for managing and synchronizing academic grades and exam schedules. This includes new models, repositories, services, and HTTP handlers, along with updated gRPC definitions and dependency injection configuration.

Additionally, improve the reliability of unread message count tracking by implementing an atomic Lua script for Redis operations in the conversation cache.
This commit is contained in:
2026-05-12 01:28:18 +08:00
parent 628a6acbe9
commit 2f2bbc646e
20 changed files with 1052 additions and 212 deletions

View File

@@ -46,6 +46,8 @@ var ServiceSet = wire.NewSet(
ProvideChatService,
ProvideScheduleService,
ProvideScheduleSyncService,
ProvideGradeSyncService,
ProvideExamSyncService,
ProvideGroupService,
ProvideUploadService,
ProvideUserActivityService,
@@ -230,6 +232,24 @@ func ProvideScheduleSyncService(
return service.NewScheduleSyncService(taskManager, scheduleRepo, logger)
}
// ProvideGradeSyncService 提供成绩同步服务
func ProvideGradeSyncService(
taskManager *runner.TaskManager,
gradeRepo repository.GradeRepository,
logger *zap.Logger,
) service.GradeSyncService {
return service.NewGradeSyncService(taskManager, gradeRepo, logger)
}
// ProvideExamSyncService 提供考试安排同步服务
func ProvideExamSyncService(
taskManager *runner.TaskManager,
examRepo repository.ExamRepository,
logger *zap.Logger,
) service.ExamSyncService {
return service.NewExamSyncService(taskManager, examRepo, logger)
}
// ProvideGroupService 提供群组服务
func ProvideGroupService(
groupRepo repository.GroupRepository,