### 测试设备空闲状态配置项
### 测试前请确保已执行数据库迁移脚本: docs/database_migration_add_device_idle_status.sql

### 1. 获取设备空闲状态配置
GET http://localhost:8080/api/admin/config/key/device.idle_status
Authorization: Bearer {{token}}

### 2. 创建设备空闲状态配置（如果不存在）
POST http://localhost:8080/api/admin/config
Content-Type: application/json
Authorization: Bearer {{token}}

{
  "configKey": "device.idle_status",
  "configValue": "空闲",
  "configType": "STRING",
  "description": "设备空闲状态的字符串标识，用于判断设备是否处于空闲状态",
  "isSystem": true
}

### 3. 更新设备空闲状态配置为其他值（测试灵活性）
PUT http://localhost:8080/api/admin/config/{{configId}}
Content-Type: application/json
Authorization: Bearer {{token}}

{
  "configKey": "device.idle_status",
  "configValue": "idle",
  "configType": "STRING",
  "description": "设备空闲状态的字符串标识，用于判断设备是否处于空闲状态",
  "isSystem": true
}

### 4. 恢复默认值
PUT http://localhost:8080/api/admin/config/{{configId}}
Content-Type: application/json
Authorization: Bearer {{token}}

{
  "configKey": "device.idle_status",
  "configValue": "空闲",
  "configType": "STRING",
  "description": "设备空闲状态的字符串标识，用于判断设备是否处于空闲状态",
  "isSystem": true
}

### 5. 获取所有系统配置查看是否包含新配置项
GET http://localhost:8080/api/admin/config/list?page=1&size=50
Authorization: Bearer {{token}}

### 6. 根据类型获取STRING类型配置
GET http://localhost:8080/api/admin/config/type/STRING
Authorization: Bearer {{token}}
