@cpzxrobot/sdk 1.1.78 → 1.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/factory_gateway.js +4 -0
- package/factory_gateway.ts +4 -0
- package/package.json +1 -1
- package/readme.md +1 -0
package/dist/factory_gateway.js
CHANGED
|
@@ -78,6 +78,10 @@ class FactoryGateway extends Object {
|
|
|
78
78
|
var axios = await this.context.ready;
|
|
79
79
|
return axios.get(`/api/v1/factory/${factory.id}/workshops`);
|
|
80
80
|
},
|
|
81
|
+
delete: async (id) => {
|
|
82
|
+
var axios = await this.context.ready;
|
|
83
|
+
return axios.post(`/api/v2/workshop/delete?id=${id}`);
|
|
84
|
+
},
|
|
81
85
|
};
|
|
82
86
|
}
|
|
83
87
|
get info() {
|
package/factory_gateway.ts
CHANGED
|
@@ -90,6 +90,10 @@ export class FactoryGateway extends Object {
|
|
|
90
90
|
var axios = await this.context.ready;
|
|
91
91
|
return axios.get(`/api/v1/factory/${factory.id}/workshops`);
|
|
92
92
|
},
|
|
93
|
+
delete: async (id: number) => {
|
|
94
|
+
var axios = await this.context.ready;
|
|
95
|
+
return axios.post(`/api/v2/workshop/delete?id=${id}`);
|
|
96
|
+
},
|
|
93
97
|
};
|
|
94
98
|
}
|
|
95
99
|
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -99,6 +99,7 @@ baseURL: "/"
|
|
|
99
99
|
| cpzxrobot().factory.workshop.get | 获得工厂的某个车间信息 |
|
|
100
100
|
| cpzxrobot().factory.workshop.post | 添加车间信息 |
|
|
101
101
|
| cpzxrobot().factory.workshop.types | 获得车间的类型列表 |
|
|
102
|
+
| cpzxrobot().factory.workshop.delete | 删除车间信息,需要传入id参数 |
|
|
102
103
|
| cpzxrobot().factory.batch.list | 获得批次列表,传入factoryId参数 |ldiba
|
|
103
104
|
| cpzxrobot().transport.fodder.getDeviceByFodderld | 获得料单对应的设备 |
|
|
104
105
|
| cpzxrobot().pigfarm.heatlamp.xxx | 操作保温灯 |
|