修改养殖端小程序,保险前后端和小程序
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user