refactor(server): 清理无用导入与类型转换

- 移除测试/控制器中未使用的导入与实例
- bills/classroom-rentals 改用 ESM 导入替代 require
- bills.service 去掉多余断言、backfill 显式转字符串、main.ts void bootstrap
This commit is contained in:
2026-08-05 21:14:17 +08:00
parent 1a1e90c72f
commit d1c933f032
8 changed files with 8 additions and 33 deletions

View File

@@ -23,24 +23,10 @@ describe('AttendanceRecordsController — DingTalk import scope', () => {
can: jest.fn().mockReturnValue(false),
};
let controller: AttendanceController;
let recordsController: AttendanceRecordsController;
let importController: AttendanceImportController;
beforeEach(() => {
jest.clearAllMocks();
controller = new AttendanceController(
attendanceService as unknown as AttendanceService,
importService as unknown as AttendanceImportService,
logService as unknown as OperationLogsService,
authzService as never,
);
recordsController = new AttendanceRecordsController(
attendanceService as unknown as AttendanceService,
importService as unknown as AttendanceImportService,
logService as unknown as OperationLogsService,
authzService as never,
);
importController = new AttendanceImportController(
attendanceService as unknown as AttendanceService,
importService as unknown as AttendanceImportService,