@cpzxrobot/sdk 1.1.50 → 1.1.51

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.
@@ -43,7 +43,7 @@ export class ContractGateway extends Object {
43
43
 
44
44
  approval(contractId: number, agree: 1 | 0, audit_info: string) {
45
45
  return this.context.ready.then((axios) => {
46
- return axios.post(`/api/v2/coremde-sale/contract/approval`, {
46
+ return axios.post(`/api/v2/coremde-sale/contract/approve`, {
47
47
  contractId,
48
48
  agree,
49
49
  audit_info,
@@ -30,5 +30,14 @@ class ContractGateway extends Object {
30
30
  }, filename);
31
31
  });
32
32
  }
33
+ approval(contractId, agree, audit_info) {
34
+ return this.context.ready.then((axios) => {
35
+ return axios.post(`/api/v2/coremde-sale/contract/approve`, {
36
+ contractId,
37
+ agree,
38
+ audit_info,
39
+ });
40
+ });
41
+ }
33
42
  }
34
43
  exports.ContractGateway = ContractGateway;
@@ -146,6 +146,11 @@ class UserGateway extends Object {
146
146
  userId: id
147
147
  });
148
148
  });
149
+ },
150
+ submits: (id) => {
151
+ return this.context.ready.then((axios) => {
152
+ return axios.get(`/api/v2/coremde-sale/approval/submit/list?userId=${id}`);
153
+ });
149
154
  }
150
155
  };
151
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {