@cpzxrobot/sdk 1.2.71 → 1.2.72

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.
@@ -284,6 +284,11 @@ class UserGateway extends Object {
284
284
  var axios = await this.context.ready;
285
285
  return axios.get(`/api/v2/user/info/${userId}`);
286
286
  }
287
+ // 待处理任务列表
288
+ async taskList(params) {
289
+ var axios = await this.context.ready;
290
+ return axios.post('/api/v2/task/list', params);
291
+ }
287
292
  //根据组织机构id获得该组织机构下所有人员
288
293
  listByGroup(groupId) {
289
294
  return this.context.ready.then((axios) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.71",
3
+ "version": "1.2.72",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/user_gateway.ts CHANGED
@@ -314,6 +314,19 @@ export class UserGateway extends Object {
314
314
  return axios.get(`/api/v2/user/info/${userId}`);
315
315
  }
316
316
 
317
+ // 待处理任务列表
318
+ async taskList(params: {
319
+ pageNo: number,
320
+ pageSize: number,
321
+ taskTypeId: number,
322
+ demandTimeStart: string,
323
+ demandTimeEnd: string,
324
+ applyUserId: number
325
+ }) {
326
+ var axios = await this.context.ready;
327
+ return axios.post('/api/v2/task/list', params);
328
+ }
329
+
317
330
  //根据组织机构id获得该组织机构下所有人员
318
331
  listByGroup(groupId: number) {
319
332
  return this.context.ready.then((axios) => {