You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
### 列出所有厂区
|
|
|
|
|
|
|
|
此接口列出 MES 平台中已配置的厂区。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 基本信息
|
|
|
|
|
|
|
|
方法:POST
|
|
|
|
|
|
|
|
URL: http://localhost:8033/open/listFactory
|
|
|
|
|
|
|
|
认证:需要(如何认证请查看《认证方式》)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 请求
|
|
|
|
|
|
|
|
此接口没有专用的参数:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"data": {}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 响应
|
|
|
|
|
|
|
|
响应字段
|
|
|
|
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|
|
| :-- | :-- | :-- |
|
|
|
|
| factories | array | 厂区记录的数组。 |
|
|
|
|
| - profile | string | 厂区配置名称,唯一。 |
|
|
|
|
| - alias | string | 厂区的名称,用于界面显示,多个厂区可使用相同的名称。 |
|
|
|
|
|
|
|
|
认证成功时,响应如下:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"clock": "2008-08-08 20:00:00.000",
|
|
|
|
"status": "ok",
|
|
|
|
"data": {
|
|
|
|
"factories": [
|
|
|
|
{
|
|
|
|
"profile": "test",
|
|
|
|
"alias": "测试环境"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"profile": "某甲",
|
|
|
|
"alias": "中国某甲能源股份有限公司"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"profile": "某乙",
|
|
|
|
"alias": "中国某乙能源股份有限公司"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"profile": "某丙",
|
|
|
|
"alias": "中国某丙能源股份有限公司"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|