Appearance
GET 获取单个场景
GET /clip/v2/resource/scene/scene_uuid
说明获取单个场景信息
Body 请求参数
json
{}请求参数
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| body | body | object | 否 | none |
返回示例
json
{
"code": 0,
"data": {
"arr": [],
"obj": {
"background": "",
"colors": [
4293551661,
4292219417,
4293890993,
4283345655,
4288215906
],
"icon": "",
"id": "3EBD2DB5-B946-4BBA-B678-C7B7C6BA4D0F",
"is_active": 0,
"name": "端午龙舟",
"parent_id": "2F84620F-C289-4AA3-8A1E-D6DE9C33D1F5",
"parent_type": "group_light",
"picture_id": "E423E110-0398-4FFB-9E3D-E8E3A1CEEEEB",
"picture_type": "file",
"picture_url": "http://192.168.41.110:8000/20240829_173416_E423E110-0398-4FFB-9E3D-E8E3A1CEEEEB.png",
"scene_type": 2,
"sequence": 0,
"type": "scene"
}
},
"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 | 资源类型 | 此处固定为 scene |
| »»» parent_id | string | true | none | 父节点 | none |
| »»» parent_type | string | true | none | 父节点 | 此处固定位 group_light |
| »»» name | string | true | none | 名称 | none |
| »»» scene_type | integer | true | none | 场景类型 | 1图片场景, 2颜色场景 |
| »»» is_active | integer | true | none | 是否激活 | 1已激活, 0否 |
| »»» picture_id | string | true | none | 图片 | 图片场景需要用到的字段 |
| »»» picture_type | string | true | none | 资源类型 | 此处固定为 file |
| »»» picture_url | string | true | none | 图片地址 | none |
| »»» icon | string | true | none | BweeApp专用 | |
| »»» background | string | true | none | BweeApp专用 | |
| »»» sequence | integer | true | none | BweeApp专用 | |
| »»» colors | [integer] | true | none | BweeApp专用 |