@cpzxrobot/sdk 1.3.82 → 1.3.83
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 +2 -2
- package/factory_gateway.ts +2 -2
- package/package.json +1 -1
- package/types.d.ts +2 -0
package/dist/factory_gateway.js
CHANGED
|
@@ -129,10 +129,10 @@ class FactoryGateway extends Object {
|
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
//获得工厂的所有车间信息
|
|
132
|
-
workshops(id) {
|
|
132
|
+
workshops(id, tags) {
|
|
133
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
134
|
var axios = yield this.context.ready;
|
|
135
|
-
const response = yield axios.get(`/api/v1/factory/${id}/workshops`);
|
|
135
|
+
const response = yield axios.get(`/api/v1/factory/${id}/workshops?tags=${tags === null || tags === void 0 ? void 0 : tags.join(',')}`);
|
|
136
136
|
return response.data;
|
|
137
137
|
});
|
|
138
138
|
}
|
package/factory_gateway.ts
CHANGED
|
@@ -115,9 +115,9 @@ export class FactoryGateway extends Object {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
//获得工厂的所有车间信息
|
|
118
|
-
async workshops(id: number): Promise<any> {
|
|
118
|
+
async workshops(id: number, tags?: string[]): Promise<any> {
|
|
119
119
|
var axios = await this.context.ready;
|
|
120
|
-
const response = await axios.get(`/api/v1/factory/${id}/workshops`);
|
|
120
|
+
const response = await axios.get(`/api/v1/factory/${id}/workshops?tags=${tags?.join(',')}`);
|
|
121
121
|
return response.data;
|
|
122
122
|
}
|
|
123
123
|
|
package/package.json
CHANGED