Appearance
GET 获取单个同步器
GET /clip/v2/resource/sync/sync_uuid
说明
- 用于单个同步器的信息和状态
返回示例
json
{
"code": 0,
"data": {
"arr": [],
"obj": {
"ability": 0,
"area_id": "",
"area_name": "",
"brightness": 0,
"color_config": 1,
"color_config_1": [
{
"position_x": 0,
"position_y": 0,
"x": 39914,
"y": 20037
},
{
"position_x": 0,
"position_y": 0,
"x": 35106,
"y": 23392
},
{
"position_x": 0,
"position_y": 0,
"x": 30699,
"y": 25918
},
{
"position_x": 0,
"position_y": 0,
"x": 26911,
"y": 28294
},
{
"position_x": 0,
"position_y": 0,
"x": 21508,
"y": 33694
}
],
"color_config_2": [
{
"position_x": 0,
"position_y": 0,
"x": 22549,
"y": 20601
},
{
"position_x": 0,
"position_y": 0,
"x": 26568,
"y": 23298
},
{
"position_x": 0,
"position_y": 0,
"x": 18270,
"y": 21550
},
{
"position_x": 0,
"position_y": 0,
"x": 9864,
"y": 16510
}
],
"color_config_3": [
{
"position_x": 0,
"position_y": 0,
"x": 14023,
"y": 17723
},
{
"position_x": 0,
"position_y": 0,
"x": 17431,
"y": 21480
},
{
"position_x": 0,
"position_y": 0,
"x": 20999,
"y": 26121
}
],
"color_config_4": [
{
"position_x": 0,
"position_y": 0,
"x": 9672,
"y": 6607
},
{
"position_x": 0,
"position_y": 0,
"x": 37190,
"y": 23165
}
],
"frequency": 0,
"id": "5075D324-2DE0-4C08-AC1B-FB07B1C447A9",
"mode": 0,
"name": "",
"on": 0,
"source": 0,
"stop_action": 0,
"type": "sync"
}
},
"msg": "success"
}返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 状态码 | none |
| » msg | string | true | none | 说明信息 | none |
| » data | object | true | none | none | |
| »» obj | object | true | none | none | |
| »»» id | string | true | none | 同步器ID | none |
| »»» type | string | true | none | 资源类型 | 此处固定为sync |
| »»» name | string | true | none | 名称 | none |
| »»» ability | integer | true | none | 能力 | 预留 |
| »»» on | integer | true | none | 开关 | 0关, 1开 |
| »»» brightness | integer | true | none | 亮度 | 1 - 100 |
| »»» source | integer | true | none | 数据源 | 0 HDMI1, 1 HDMI2 |
| »»» mode | integer | true | none | 模式 | 0视频, 1音乐, 2游戏 |
| »»» frequency | integer | true | none | 强度 | 0低, 1中, 2高, 3最高 |
| »»» stop_action | integer | true | none | 停止动作 | 0保持, 2关灯 |
| »»» color_config | integer | true | none | 当前配置 | 勾选哪个 config, 1对应 color_config_1, 2对应 color_config_2, 依次类推 |
| »»» color_config_1 | [object] | true | none | 配置1 | none |
| »»»» x | integer | true | none | X值 | none |
| »»»» y | integer | true | none | Y值 | none |
| »»» color_config_2 | [object] | true | none | 配置2 | none |
| »»»» x | integer | true | none | X值 | none |
| »»»» y | integer | true | none | Y值 | none |
| »»» color_config_3 | [object] | true | none | 配置3 | none |
| »»»» x | integer | true | none | X值 | none |
| »»»» y | integer | true | none | Y值 | none |
| »»» color_config_4 | [object] | true | none | 配置4 | none |
| »»»» x | integer | true | none | X值 | none |
| »»»» y | integer | true | none | Y值 | none |
| »»» area_id | string | true | none | 区域ID | 与之关联的同步区域ID |
| »»» area_name | string | true | none | 区域名称 | 与之关联的同步区域名称 |