@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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;