修改养殖端小程序,保险前后端和小程序

This commit is contained in:
xuqiuyun
2025-09-19 18:13:07 +08:00
parent eb3c4604d3
commit 35db747d4f
89 changed files with 16231 additions and 1500 deletions

View File

@@ -898,6 +898,75 @@ router.get('/collars/search/:collarNumber', verifyToken, requirePermission('smar
* tags: [Smart Devices]
* security:
* - bearerAuth: []
* parameters:
* - in: query
* name: page
* schema:
* type: integer
* default: 1
* description: 页码
* - in: query
* name: limit
* schema:
* type: integer
* default: 10
* description: 每页数量
* - in: query
* name: status
* schema:
* type: string
* enum: [online, offline, alarm, maintenance]
* description: 设备状态筛选
* - in: query
* name: search
* schema:
* type: string
* description: 搜索关键词设备ID或序列号
* responses:
* 200:
* description: 获取成功
* content:
* application/json:
* schema:
* type: object
* properties:
* success:
* type: boolean
* data:
* type: array
* items:
* type: object
* properties:
* id:
* type: integer
* sn:
* type: string
* battery:
* type: number
* rsrp:
* type: number
* bandge_status:
* type: integer
* deviceInfo:
* type: string
* temperature:
* type: number
* status:
* type: string
* steps:
* type: integer
* location:
* type: string
* updateInterval:
* type: integer
* lastUpdate:
* type: string
* total:
* type: integer
* stats:
* type: object
* pagination:
* type: object
*/
router.get('/collars', verifyToken, requirePermission('smart_collar:view'), async (req, res) => {
try {