@cpzxrobot/sdk 1.2.24 → 1.2.25

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.
@@ -184,8 +184,6 @@ export class CustomerGateway extends Object {
184
184
  });
185
185
  }
186
186
 
187
-
188
-
189
187
  //获得客户类型列表
190
188
  types() {
191
189
  return this.context.ready.then((axios) => {
@@ -232,7 +230,13 @@ export class CustomerGateway extends Object {
232
230
  return this.context.ready.then((axios) => {
233
231
  return axios.post(`/api/v2/coremde-sale/customer/contact/delete`, args);
234
232
  });
235
- }
233
+ },
234
+ // 获取联系人列表
235
+ list: (id:number) => {
236
+ return this.context.ready.then((axios) => {
237
+ return axios.get(`/api/v2/coremde-sale/customer/contact/list?id=${id}`);
238
+ });
239
+ },
236
240
  }
237
241
  }
238
242
  }
@@ -166,7 +166,13 @@ class CustomerGateway extends Object {
166
166
  return this.context.ready.then((axios) => {
167
167
  return axios.post(`/api/v2/coremde-sale/customer/contact/delete`, args);
168
168
  });
169
- }
169
+ },
170
+ // 获取联系人列表
171
+ list: (id) => {
172
+ return this.context.ready.then((axios) => {
173
+ return axios.get(`/api/v2/coremde-sale/customer/contact/list?id=${id}`);
174
+ });
175
+ },
170
176
  };
171
177
  }
172
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {