buider
This commit is contained in:
@@ -57,6 +57,7 @@ const { verifyToken } = require('../middleware/auth');
|
||||
* price: 99.99
|
||||
* stock: 100
|
||||
* status: "active"
|
||||
*/
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
|
||||
@@ -22,6 +22,12 @@ publicRoutes.get('/monitoring', statsController.getMonitorData);
|
||||
// 公开获取月度数据趋势
|
||||
publicRoutes.get('/monthly-trends', statsController.getMonthlyTrends);
|
||||
|
||||
// 公开获取农场总数统计(实时数据库查询)
|
||||
publicRoutes.get('/farm-count', statsController.getFarmCount);
|
||||
|
||||
// 公开获取动物总数统计(实时数据库查询)
|
||||
publicRoutes.get('/animal-count', statsController.getAnimalCount);
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* tags:
|
||||
|
||||
Reference in New Issue
Block a user