设备新增搜索条件
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m8s

This commit is contained in:
2026-05-20 10:27:30 +08:00
parent e2301d5f3b
commit 2768deb0b6
6 changed files with 32 additions and 0 deletions

View File

@@ -13162,6 +13162,13 @@ paths:
description: 虚拟号(模糊查询)
maxLength: 100
type: string
- description: 设备IMEI(模糊查询)
in: query
name: imei
schema:
description: 设备IMEI(模糊查询)
maxLength: 20
type: string
- description: 设备名称(模糊查询)
in: query
name: device_name

View File

@@ -0,0 +1,16 @@
# 设备列表 IMEI 搜索功能总结
## 功能说明
后台设备列表接口 `GET /api/admin/devices` 支持通过 `imei` 查询参数按设备 IMEI 模糊搜索设备。
## 影响范围
- 请求参数新增 `imei`,最大长度 20。
- 查询链路从 Handler 解析参数后,经 Service 传递到 Store 层过滤条件。
- OpenAPI 文档已同步新增 `imei` 查询参数。
## 验证方式
- 执行 `go run cmd/gendocs/main.go` 重新生成 OpenAPI 文档。
- 执行 `go build ./...` 验证编译通过。