@cpzxrobot/sdk 1.1.18 → 1.1.19
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/pigfarm_gateway.js +6 -0
- package/package.json +1 -1
- package/pigfarm_gateway.ts +6 -0
package/dist/pigfarm_gateway.js
CHANGED
|
@@ -210,6 +210,12 @@ class PigfarmGateway extends Object {
|
|
|
210
210
|
return axios.post(`/api/v1/pigfarm/heatLamp/config/template`, Object.assign(Object.assign({}, data), { factoryId: factory.id, templateName: name }));
|
|
211
211
|
});
|
|
212
212
|
},
|
|
213
|
+
//删除模版
|
|
214
|
+
delete: (id) => {
|
|
215
|
+
return this.context.ready.then((axios) => {
|
|
216
|
+
return axios.post(`/api/v1/pigfarm/heatLamp/config/template/delete?id=${id}`);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
213
219
|
},
|
|
214
220
|
list: async (unit) => {
|
|
215
221
|
var axios = await this.context.ready;
|
package/package.json
CHANGED
package/pigfarm_gateway.ts
CHANGED
|
@@ -265,6 +265,12 @@ export class PigfarmGateway extends Object {
|
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
267
|
},
|
|
268
|
+
//删除模版
|
|
269
|
+
delete: (id: number) => {
|
|
270
|
+
return this.context.ready.then((axios) => {
|
|
271
|
+
return axios.post(`/api/v1/pigfarm/heatLamp/config/template/delete?id=${id}`);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
268
274
|
},
|
|
269
275
|
list: async (unit: Unit): Promise<any> => {
|
|
270
276
|
var axios = await this.context.ready;
|