@cpzxrobot/sdk 1.2.82 → 1.2.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.
@@ -321,6 +321,26 @@ class UserGateway extends Object {
321
321
  handleUserId
322
322
  });
323
323
  });
324
+ },
325
+ // 任务催单功能
326
+ remind: (taskId, handleUserId = 0, remindNotes = "") => {
327
+ return this.context.ready.then((axios) => {
328
+ return axios.post('/api/v2/coremde-sale/task/remind', {
329
+ taskId,
330
+ handleUserId,
331
+ remindNotes
332
+ });
333
+ });
334
+ },
335
+ // 任务接单功能
336
+ accept: (taskId) => {
337
+ return this.context.ready.then((axios) => {
338
+ return axios.get('/api/v2/coremde-sale/task/accept', {
339
+ params: {
340
+ taskId
341
+ }
342
+ });
343
+ });
324
344
  }
325
345
  };
326
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.82",
3
+ "version": "1.2.83",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/user_gateway.ts CHANGED
@@ -367,6 +367,26 @@ export class UserGateway extends Object {
367
367
  handleUserId
368
368
  });
369
369
  });
370
+ },
371
+ // 任务催单功能
372
+ remind: (taskId: number, handleUserId: number = 0, remindNotes: string = "") => {
373
+ return this.context.ready.then((axios) => {
374
+ return axios.post('/api/v2/coremde-sale/task/remind', {
375
+ taskId,
376
+ handleUserId,
377
+ remindNotes
378
+ });
379
+ });
380
+ },
381
+ // 任务接单功能
382
+ accept: (taskId: number) => {
383
+ return this.context.ready.then((axios) => {
384
+ return axios.get('/api/v2/coremde-sale/task/accept', {
385
+ params: {
386
+ taskId
387
+ }
388
+ });
389
+ });
370
390
  }
371
391
  }
372
392
  }