文档
测试

获取产线工位

GET
http://localhost:5001/scada/workPoints/lines

接口描述

获取产线上的所有工位

响应参数

参数名
类型
描述
必填
ErrorNo
int
示例:0
必填
ErrorMsg
string
示例:
必填
Data
array
产线工位数据列表
必填
_id
string
必须,产线工位的ID
必填
loc
string
必须,产线工位的位置信息
必填
floor
string
必须,区域信息或产线名称/ID
必填
location
object
可选
direction
object
可选
prepoint
object
可选
type
object
可选
CsType
int
可选
isNone
boolean
可选
io
object
可选
map
object
可选
status
object
可选
Available
boolean
可选
Modifiable
boolean
可选
Name
object
可选

响应示例

``` Json { "ErrorNo": 0, "ErrorMsg": "", "Data": [ { "id": "wp-7c9a", "area": "line-2", "location": null, "direction": null, "loc": "0", "prepoint": null, "type": null, "CsType": 5, "isNone": false, "io": null, "map": null, "status": null, "Available": false, "Modifiable": false, "Name": null }, { "id": "wp-9836", "area": "line-3", "location": null, "direction": null, "loc": "1", "prepoint": null, "type": null, "CsType": 5, "isNone": false, "io": null, "map": null, "status": null, "Available": false, "Modifiable": false, "Name": null }, { "id": "wp-4b7a", "area": "line-2", "location": null, "direction": null, "loc": "2", "prepoint": null, "type": null, "CsType": 5, "isNone": false, "io": null, "map": null, "status": null, "Available": false, "Modifiable": false, "Name": null }, { "id": "wp-5be7", "area": "line-4", "location": null, "direction": null, "loc": "3", "prepoint": null, "type": null, "CsType": 5, "isNone": false, "io": null, "map": null, "status": null, "Available": false, "Modifiable": false, "Name": null }, { "id": "wp-c462", "area": "line-2", "location": null, "direction": null, "loc": "4", "prepoint": null, "type": null, "CsType": 5, "isNone": false, "io": null, "map": null, "status": null, "Available": false, "Modifiable": false, "Name": null } ] } ```