Files
game_server/test_device_idle_config.http
zyh 87741fd8c2 feat: 增加设备空闲状态检测配置
主要修改:
1. 在SystemConfigService中新增获取设备空闲状态的方法。
2. 更新DeviceStatusService和DeviceStatusCheckService,使用可配置的空闲状态字符串替代硬编码。
3. 在文档中添加设备检测相关配置的说明,提升系统灵活性和可维护性。

技术细节:
- 通过引入设备空闲状态的配置,支持多语言环境下的设备状态标识,便于系统维护和扩展。
2025-08-27 21:39:07 +08:00

54 lines
1.7 KiB
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

###
### : 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}}