2026-03-02 12:36:41 +00:00
|
|
|
const express = require('express');
|
|
|
|
|
const router = express.Router();
|
|
|
|
|
const statisticsController = require('../controllers/statisticsController');
|
|
|
|
|
|
|
|
|
|
// 路由
|
|
|
|
|
router.get('/rent', statisticsController.getRentStatistics);
|
|
|
|
|
router.get('/room-status', statisticsController.getRoomStatusStatistics);
|
2026-03-03 16:33:04 +00:00
|
|
|
router.get('/dashboard', statisticsController.getDashboardStatistics);
|
2026-03-08 16:28:33 +00:00
|
|
|
router.get('/apartment-room-status', statisticsController.getApartmentRoomStatusStatistics);
|
2026-03-10 11:55:34 +00:00
|
|
|
router.get('/empty-rooms-by-apartment', statisticsController.getEmptyRoomsByApartment);
|
|
|
|
|
router.get('/rented-rooms-by-apartment', statisticsController.getRentedRoomsByApartment);
|
2026-03-10 12:06:56 +00:00
|
|
|
router.get('/soon-expire-rooms-by-apartment', statisticsController.getSoonExpireRoomsByApartment);
|
|
|
|
|
router.get('/expired-rooms-by-apartment', statisticsController.getExpiredRoomsByApartment);
|
2026-03-10 11:55:34 +00:00
|
|
|
router.get('/tenant-rental-stats', statisticsController.getTenantRentalStats);
|
2026-03-02 12:36:41 +00:00
|
|
|
|
|
|
|
|
module.exports = router;
|