@cpzxrobot/sdk 1.0.15 → 1.0.17
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/device_filter.ts +1 -0
- package/dist/pigfarm_gateway.js +6 -0
- package/package.json +1 -1
- package/pigfarm_gateway.ts +1 -1
package/device_filter.ts
CHANGED
package/dist/pigfarm_gateway.js
CHANGED
|
@@ -12,5 +12,11 @@ class PigfarmGateway extends Object {
|
|
|
12
12
|
return axios.get(`/api/v1/pigfarm/${unit.id}/dayage`);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
+
//获得存栏量
|
|
16
|
+
pigCountForUnit(unit) {
|
|
17
|
+
return this.context.ready.then((axios) => {
|
|
18
|
+
return axios.get(`/api/v1/pigfarm/pigcount/${unit.id}`);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
22
|
exports.PigfarmGateway = PigfarmGateway;
|
package/package.json
CHANGED
package/pigfarm_gateway.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class PigfarmGateway extends Object {
|
|
|
16
16
|
//获得存栏量
|
|
17
17
|
pigCountForUnit(unit: Unit) {
|
|
18
18
|
return this.context.ready.then((axios) => {
|
|
19
|
-
return axios.get(`/api/v1/pigfarm/${unit.id}
|
|
19
|
+
return axios.get(`/api/v1/pigfarm/pigcount/${unit.id}`);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
}
|