feat: integrate notification creation into business modules (classes, schedules done; bills/occupancies/deposits need student→userId mapping)

This commit is contained in:
2026-07-05 23:25:34 +08:00
parent 155e3b3c96
commit 7020e86809
10 changed files with 118 additions and 30 deletions

View File

@@ -11,6 +11,8 @@ import {
Request,
} from '@nestjs/common';
import { DepositsService } from './deposits.service';
import { NotificationsService } from '../notifications/notifications.service';
import { NotificationType } from '../entities/notification.entity';
import { CreateDepositDto, RefundDepositDto, CreateDepositWithInstallmentsDto } from './dto/deposit.dto';
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';
import { OperationLogsService } from '../operation-logs/operation-logs.service';
@@ -23,6 +25,7 @@ export class DepositsController {
constructor(
private service: DepositsService,
private logService: OperationLogsService,
private readonly notificationsService: NotificationsService,
) {}
@Get()
@@ -68,6 +71,7 @@ export class DepositsController {
ipAddress,
userAgent,
});
// TODO: Send notification for deposit_due — studentId→userId mapping unavailable
return result;
}
@@ -111,6 +115,7 @@ export class DepositsController {
ipAddress,
userAgent,
});
// TODO: Send notification for deposit_refunded — studentId→userId mapping unavailable
return result;
}