@cpzxrobot/sdk 1.2.14 → 1.2.15
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/contract_gateway.ts +18 -0
- package/dist/contract_gateway.js +15 -0
- package/package.json +1 -1
package/contract_gateway.ts
CHANGED
|
@@ -25,6 +25,24 @@ export class ContractGateway extends Object {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
postGet(id: number) {
|
|
29
|
+
return this.context.ready.then((axios) => {
|
|
30
|
+
return axios.post(`/api/v2/coremde-sale/contract/get`, {id});
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
addForProject(args: any) {
|
|
35
|
+
return this.context.ready.then((axios) => {
|
|
36
|
+
return axios.post(`/api/v2/coremde-sale/contract/project/add`, args);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
addForProduct(args: any) {
|
|
41
|
+
return this.context.ready.then((axios) => {
|
|
42
|
+
return axios.post(`/api/v2/coremde-sale/contract/product/add`, args);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
28
46
|
add(args: any) {
|
|
29
47
|
return this.context.ready.then((axios) => {
|
|
30
48
|
return axios.post(`/api/v2/coremde-sale/contract/add`, args);
|
package/dist/contract_gateway.js
CHANGED
|
@@ -16,6 +16,21 @@ class ContractGateway extends Object {
|
|
|
16
16
|
return axios.get(`/api/v2/coremde-sale/contract/get?id=${id}`);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
+
postGet(id) {
|
|
20
|
+
return this.context.ready.then((axios) => {
|
|
21
|
+
return axios.post(`/api/v2/coremde-sale/contract/get`, { id });
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
addForProject(args) {
|
|
25
|
+
return this.context.ready.then((axios) => {
|
|
26
|
+
return axios.post(`/api/v2/coremde-sale/contract/project/add`, args);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
addForProduct(args) {
|
|
30
|
+
return this.context.ready.then((axios) => {
|
|
31
|
+
return axios.post(`/api/v2/coremde-sale/contract/product/add`, args);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
19
34
|
add(args) {
|
|
20
35
|
return this.context.ready.then((axios) => {
|
|
21
36
|
return axios.post(`/api/v2/coremde-sale/contract/add`, args);
|