@cpzxrobot/sdk 1.0.86 → 1.0.87
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/dist/factory_gateway.js
CHANGED
|
@@ -78,10 +78,10 @@ class FactoryGateway extends Object {
|
|
|
78
78
|
return {
|
|
79
79
|
//上传banner,formData中包含key为file的文件,返回code
|
|
80
80
|
add: (factory, form) => {
|
|
81
|
-
return this.context.axios.post(`/api/
|
|
81
|
+
return this.context.axios.post(`/api/v2/factory/${factory.id}/banner/add`, form);
|
|
82
82
|
},
|
|
83
83
|
del: (code) => {
|
|
84
|
-
return this.context.axios.get(`/api/
|
|
84
|
+
return this.context.axios.get(`/api/v2/factory/banner/delete?id=${code}`);
|
|
85
85
|
},
|
|
86
86
|
};
|
|
87
87
|
}
|
package/factory_gateway.ts
CHANGED
|
@@ -101,13 +101,13 @@ export class FactoryGateway extends Object {
|
|
|
101
101
|
//上传banner,formData中包含key为file的文件,返回code
|
|
102
102
|
add: (factory: Factory, form: FormData) => {
|
|
103
103
|
return this.context.axios.post(
|
|
104
|
-
`/api/
|
|
104
|
+
`/api/v2/factory/${factory.id}/banner/add`,
|
|
105
105
|
form
|
|
106
106
|
);
|
|
107
107
|
},
|
|
108
108
|
del: (code: String) => {
|
|
109
109
|
return this.context.axios.get(
|
|
110
|
-
`/api/
|
|
110
|
+
`/api/v2/factory/banner/delete?id=${code}`
|
|
111
111
|
);
|
|
112
112
|
},
|
|
113
113
|
};
|