通用平台
# 公共分类
## 布点新增
### 基本信息
**Path:** /api/workshops/
**Method:** POST
**接口描述:**
### 请求参数
**Headers**
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
| ------------ | ------------------- | -------- | ---- | ---- |
| Content-Type | multipart/form-data | 是 | | |
**Body**
| 参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
| -------- | -------- | -------- | ---- | -------- |
| name | text | 是 | | 布点名称 |
| picture | file | 是 | | 上传图片 |
### 返回数据
## 布点设备
### 基本信息
**Path:** /api/workshop_devices/
**Method:** POST
**接口描述:**
### 请求参数
**Headers**
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
| ------------ | --------------------------------- | -------- | ---- | ---- |
| Content-Type | application/x-www-form-urlencoded | 是 | | |
**Body**
| 参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
| ----------- | -------- | -------- | ---- | ------- |
| workshop_id | text | 是 | | 布点 id |
| device_id | text | 是 | | 设备 id |
| x_ordinate | text | 是 | | 横坐标 |
| y_ordinate | text | 是 | | 纵坐标 |
| icon | text | 是 | | 图标 |
### 返回数据
##
##
## 获取关联设备
### 基本信息
**Path:** /api/get_devices/
**Method:** GET
**接口描述:**
### 请求参数
### 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
data | object [] | 非必须 | | | item 类型: object |
├─ id | number | 非必须 | | | |
├─ suid | string | 非必须 | | | |
├─ entity_id | number | 非必须 | | | |
├─ entity_suid | string | 非必须 | | | |
├─ node_id | number | 非必须 | | | |
├─ node_suid | string | 非必须 | | | |
├─ classification | string | 非必须 | | | |
├─ name | string | 非必须 | | | |
├─ addr | string | 非必须 | | | |
├─ device_model | string | 非必须 | | | |
├─ param | string | 非必须 | | | |
├─ comment | string | 非必须 | | | |
├─ status | number | 非必须 | | | |
├─ is_used | number | 非必须 | | | |
├─ create_time | string | 非必须 | | | |
├─ update_time | string | 非必须 | | | |
├─ is_cam | boolean | 非必须 | | | |
msg | null | 非必须 | | | |
success | boolean | 非必须 | | | |
status | number | 非必须 | | | |
## 获取布点
### 基本信息
**Path:** /api/workshops/
**Method:** GET
**接口描述:**
### 请求参数
### 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
data | object | 非必须 | | | |
├─ count | number | 非必须 | | | |
├─ next | null | 非必须 | | | |
├─ previous | null | 非必须 | | | |
├─ results | object [] | 非必须 | | | item 类型: object |
├─ id | number | 非必须 | | | |
├─ name | string | 非必须 | | | |
├─ picture | string | 非必须 | | | |
├─ status | number | 非必须 | | | |
├─ create_time | string | 非必须 | | | |
├─ update_time | string | 非必须 | | | |
msg | null | 非必须 | | | |
success | boolean | 非必须 | | | |
status | number | 非必须 | | | |
## 获取布点设备
### 基本信息
**Path:** /api/workshop_devices/
**Method:** GET
**接口描述:**
### 请求参数
**Query**
| 参数名称 | 是否必须 | 示例 | 备注 |
| ----------- | -------- | ---- | ------- |
| workshop_id | 否 | | 布点 id |
### 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
data | object | 非必须 | | | |
├─ count | number | 非必须 | | | |
├─ next | null | 非必须 | | | |
├─ previous | null | 非必须 | | | |
├─ results | object [] | 非必须 | | | item 类型: object |
├─ id | number | 非必须 | | | |
├─ workshop_id | number | 非必须 | | | |
├─ device_id | number | 非必须 | | | |
├─ x_ordinate | string | 非必须 | | | |
├─ y_ordinate | string | 非必须 | | | |
├─ icon | string | 非必须 | | | |
├─ status | number | 非必须 | | | |
├─ create_time | string | 非必须 | | | |
├─ update_time | string | 非必须 | | | |
msg | null | 非必须 | | | |
success | boolean | 非必须 | | | |
status | number | 非必须 | | | |