@ningboyz/apis 1.7.108 → 1.7.110

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.7.108",
3
+ "version": "1.7.110",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -17,7 +17,7 @@
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
19
  "dependencies": {
20
- "@ningboyz/types": "1.7.108",
20
+ "@ningboyz/types": "1.7.109",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -1,6 +1,7 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import {
4
+ ICoreDeptCountDeptPersonQuerys,
4
5
  ICoreDeptDatalevlUploaddbdbQuerys,
5
6
  ICoreDeptDeletedbQuerys,
6
7
  ICoreDeptDeptBindSelectdbQuerys,
@@ -184,6 +185,10 @@ class DeptRequest {
184
185
  updateDeptCode(querys: ICoreDeptUpdateDeptCodeQuerys, params: object) {
185
186
  return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/deptcode/uploaddb", querys, params);
186
187
  }
188
+ /**统计部门人员 */
189
+ appenddb(querys: ICoreDeptCountDeptPersonQuerys, params: object) {
190
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/usersize/appenddb", querys, params);
191
+ }
187
192
  }
188
193
 
189
194
  export default DeptRequest;
@@ -273,13 +273,13 @@ export class TCorePathUploaddbQuerys implements ICorePathUploaddbQuerys {
273
273
  export interface ICorePathRotationQuerys {
274
274
  syspathc: number;
275
275
  rotation: number;
276
- pagenums: number;
276
+ pagenums: string;
277
277
  }
278
278
 
279
279
  export class TCorePathRotationQuerys implements ICorePathRotationQuerys {
280
280
  syspathc: number = -1;
281
281
  rotation: number = -1;
282
- pagenums: number = -1;
282
+ pagenums: string = "-1";
283
283
  }
284
284
 
285
285
  export interface ICorePathPdfwaterQuerys {
@@ -1473,3 +1473,50 @@ export class TCoreUserGet4FinishedQuerys implements ICoreUserGet4FinishedQuerys
1473
1473
  unitlike: string = "";
1474
1474
  deptlike: string = "";
1475
1475
  }
1476
+
1477
+ /**统计单位人员 */
1478
+ export interface ICoreUnitCountUnitPersonQuerys {
1479
+ syspartc: number;
1480
+ }
1481
+
1482
+ export class TCoreUnitCountUnitPersonQuerys implements ICoreUnitCountUnitPersonQuerys {
1483
+ syspartc: number = -1;
1484
+ }
1485
+
1486
+ /**统计部门人员 */
1487
+ export interface ICoreDeptCountDeptPersonQuerys {
1488
+ syspartc: number;
1489
+ }
1490
+
1491
+ export class TCoreDeptCountDeptPersonQuerys implements ICoreDeptCountDeptPersonQuerys {
1492
+ syspartc: number = -1;
1493
+ }
1494
+
1495
+ /**获取用户(分页) */
1496
+ export interface ICoreUserWithPageSelectdbQuerys {
1497
+ unitmain: number;
1498
+ syspartc: number;
1499
+ entityid: string;
1500
+ mobileid: string;
1501
+ queuesby: string;
1502
+ // 单位编码
1503
+ unitlike: string;
1504
+ // 部门编码
1505
+ deptlike: string;
1506
+ deptmain: number;
1507
+ pagesize: number;
1508
+ realpage: number;
1509
+ }
1510
+
1511
+ export class TCoreUserWithPageSelectdbQuerys implements ICoreUserWithPageSelectdbQuerys {
1512
+ syspartc: number = -1;
1513
+ unitmain: number = -1;
1514
+ entityid: string = "";
1515
+ mobileid: string = "";
1516
+ queuesby: string = "";
1517
+ unitlike: string = "";
1518
+ deptlike: string = "";
1519
+ deptmain: number = -1;
1520
+ pagesize: number = -1;
1521
+ realpage: number = -1;
1522
+ }
@@ -2,6 +2,7 @@ import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { IEmptyQuerys, IParams } from "../type";
4
4
  import {
5
+ ICoreUnitCountUnitPersonQuerys,
5
6
  ICoreUnitDeletePathQuerys,
6
7
  ICoreUnitDetaildbQuerys,
7
8
  ICoreUnitGet4UnitQuerys,
@@ -150,6 +151,11 @@ class UnitRequest {
150
151
  updateUnitCode(querys: ICoreUnitUpdateUnitCodeQuerys, params: object) {
151
152
  return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/unitcode/uploaddb", querys, params);
152
153
  }
154
+
155
+ /**统计单位人员 */
156
+ appenddb(querys: ICoreUnitCountUnitPersonQuerys, params: object) {
157
+ return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/usersize/appenddb", querys, params);
158
+ }
153
159
  }
154
160
 
155
161
  export default UnitRequest;
@@ -85,6 +85,7 @@ import {
85
85
  ICoreUserUploaddbQuerys,
86
86
  ICoreUserVerifydbAuthcodeQuerys,
87
87
  ICoreUserVerifydbDingdingQuerys,
88
+ ICoreUserWithPageSelectdbQuerys,
88
89
  ICoreUserWorkStatUpdatedbQuerys
89
90
  } from "./types";
90
91
 
@@ -929,6 +930,11 @@ class UserRequest {
929
930
  get4finished(querys: ICoreUserGet4FinishedQuerys, params: object) {
930
931
  return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/finished/withflow", querys, params);
931
932
  }
933
+
934
+ //获取用户(分页)
935
+ withPageSelectdb(querys: ICoreUserWithPageSelectdbQuerys, params: object) {
936
+ return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/withpage/selectdb", querys, params);
937
+ }
932
938
  }
933
939
 
934
940
  export default UserRequest;
@@ -7,6 +7,7 @@ import {
7
7
  IFlowFlowListUserQuerys,
8
8
  IFlowFlowNextNodeQuerys,
9
9
  IFlowFlowRedoflowQuerys,
10
+ IFlowFlowTodolistQuerys,
10
11
  IFlowFlowUserMemoDeletedbQuerys,
11
12
  IFlowFlowUserMemoInsertdbQuerys,
12
13
  IFlowFlowUserMemoSelectdbQuerys,
@@ -140,25 +141,54 @@ class FlowRequest {
140
141
  return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/domywork", querys, params);
141
142
  }
142
143
 
143
- // 查询常用语
144
+ /**
145
+ * 查询常用语
146
+ * @param querys
147
+ * @returns
148
+ */
144
149
  usermemoSelectdb(querys: IFlowFlowUserMemoSelectdbQuerys) {
145
150
  return this.httpRequest.post<TCore.IUserMemoResponse[]>("/flow/tflow/usermemo/selectdb", querys, undefined);
146
151
  }
147
152
 
148
- // 新增常用语
153
+ /**
154
+ * 新增常用语
155
+ * @param querys
156
+ * @param params
157
+ * @returns
158
+ */
149
159
  usermemoInsertdb(querys: IFlowFlowUserMemoInsertdbQuerys, params: object) {
150
160
  return this.httpRequest.post<TCore.IUserMemoResponse[]>("/flow/tflow/usermemo/insertdb", querys, params);
151
161
  }
152
162
 
153
- // 删除常用语
163
+ /**
164
+ * 删除常用语
165
+ * @param querys
166
+ * @param params
167
+ * @returns
168
+ */
154
169
  usermemoDeletedb(querys: IFlowFlowUserMemoDeletedbQuerys, params: object) {
155
170
  return this.httpRequest.post<TCore.IUserMemoResponse[]>("/flow/tflow/usermemo/deletedb", querys, params);
156
171
  }
157
172
 
158
- /**重置流程 */
173
+ /**
174
+ * 重置流程
175
+ * @param querys
176
+ * @param params
177
+ * @returns
178
+ */
159
179
  redoflow(querys: IFlowFlowRedoflowQuerys, params: object) {
160
180
  return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/redoflow", querys, params);
161
181
  }
182
+
183
+ /**
184
+ * 获取待办数量
185
+ * @param querys
186
+ * @param params
187
+ * @returns
188
+ */
189
+ todolist(querys: IFlowFlowTodolistQuerys, params: object) {
190
+ return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/todolist", querys, params);
191
+ }
162
192
  }
163
193
 
164
194
  export default FlowRequest;
@@ -252,21 +252,29 @@ export class TFlowNodeSelectdb2Querys implements IFlowNodeSelectdb2Querys {
252
252
  flowmain: number = -1;
253
253
  }
254
254
 
255
- export interface IFlowFlowUserMemoSelectdbQuerys {}
255
+ export interface IFlowFlowUserMemoSelectdbQuerys { }
256
256
 
257
- export class TFlowFlowUserMemoSelectdbQuerys implements IFlowFlowUserMemoSelectdbQuerys {}
257
+ export class TFlowFlowUserMemoSelectdbQuerys implements IFlowFlowUserMemoSelectdbQuerys { }
258
258
 
259
- export interface IFlowFlowUserMemoInsertdbQuerys {}
259
+ export interface IFlowFlowUserMemoInsertdbQuerys { }
260
260
 
261
- export class TFlowFlowUserMemoInsertdbQuerys implements IFlowFlowUserMemoInsertdbQuerys {}
261
+ export class TFlowFlowUserMemoInsertdbQuerys implements IFlowFlowUserMemoInsertdbQuerys { }
262
262
 
263
- export interface IFlowFlowUserMemoDeletedbQuerys {}
263
+ export interface IFlowFlowUserMemoDeletedbQuerys { }
264
264
 
265
- export class TFlowFlowUserMemoDeletedbQuerys implements IFlowFlowUserMemoDeletedbQuerys {}
265
+ export class TFlowFlowUserMemoDeletedbQuerys implements IFlowFlowUserMemoDeletedbQuerys { }
266
266
 
267
- export interface IFlowFlowRedoflowQuerys {}
267
+ export interface IFlowFlowRedoflowQuerys { }
268
268
 
269
- export class TFlowFlowRedoflowQuerys implements IFlowFlowRedoflowQuerys {}
269
+ export class TFlowFlowRedoflowQuerys implements IFlowFlowRedoflowQuerys { }
270
+
271
+ export interface IFlowFlowTodolistQuerys {
272
+ withhour: number;
273
+ }
274
+
275
+ export class TFlowFlowTodolistQuerys implements IFlowFlowTodolistQuerys {
276
+ withhour: number = -1;
277
+ }
270
278
 
271
279
  export interface IFlowFlowStarToneQuerys {
272
280
  flowmain: number;
package/packages/index.ts CHANGED
@@ -19,6 +19,7 @@ export * from "./hznk";
19
19
  export * from "./japz";
20
20
  export * from "./load";
21
21
  export * from "./myoa";
22
+ export * from "./note";
22
23
  export * from "./noti";
23
24
  export * from "./ocri";
24
25
  export * from "./pzpt";
@@ -22,7 +22,7 @@ class MainRequest {
22
22
  * @param params
23
23
  * @returns
24
24
  */
25
- inserdb(params: object) {
25
+ insertdb(params: object) {
26
26
  return this.httpRequest.post<TLoad.ILoadDataResponse[]>("/gapi/load/tmain/insertdb", undefined, params);
27
27
  }
28
28
 
@@ -0,0 +1,15 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class LoadRequest {
5
+ public main: MainRequest;
6
+
7
+ constructor(config: IAxiosConfig) {
8
+ const request = createRequest(config);
9
+ this.main = new MainRequest(request);
10
+ }
11
+ }
12
+
13
+ export default MainRequest;
14
+ export * from "./types";
15
+
@@ -0,0 +1,58 @@
1
+ import type { TLoad } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { INoteMainDetaildbQuerys, INoteMainSelectdbQuerys } from "./types";
4
+
5
+ class MainRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取备忘录列表
13
+ * @param querys
14
+ * @param params
15
+ * @returns
16
+ */
17
+ selectdb(querys: INoteMainSelectdbQuerys, params: object) {
18
+ return this.httpRequest.post<TLoad.ILoadMainResponse[]>("/gapi/note/tmain/selectdb", querys, params);
19
+ }
20
+
21
+ /**
22
+ * 新增备忘录
23
+ * @param params
24
+ * @returns
25
+ */
26
+ insertdb(params: object) {
27
+ return this.httpRequest.post<TLoad.ILoadDataResponse[]>("/gapi/note/tmain/insertdb", undefined, params);
28
+ }
29
+
30
+ /**
31
+ * 修改备忘录
32
+ * @param params
33
+ * @returns
34
+ */
35
+ updatedb(params: object) {
36
+ return this.httpRequest.post<TLoad.ILoadDataResponse[]>("/gapi/note/tmain/updatedb", undefined, params);
37
+ }
38
+
39
+ /**
40
+ * 获取备忘录详情
41
+ * @param querys
42
+ * @returns
43
+ */
44
+ detaildb(querys: INoteMainDetaildbQuerys) {
45
+ return this.httpRequest.post<TLoad.ILoadMainResponse[]>("/gapi/note/tmain/detaildb", querys);
46
+ }
47
+
48
+ /**
49
+ * 删除备忘录
50
+ * @param params
51
+ * @returns
52
+ */
53
+ deletedb(params: object) {
54
+ return this.httpRequest.post<TLoad.ILoadMainResponse[]>("/gapi/note/tmain/deletedb", undefined, params);
55
+ }
56
+ }
57
+
58
+ export default MainRequest;
@@ -0,0 +1,19 @@
1
+ export interface INoteMainSelectdbQuerys {
2
+ notemain: number;
3
+ yzhtmain: number;
4
+ useronly: number;
5
+ }
6
+
7
+ export class TNoteMainSelectdbQuerys implements INoteMainSelectdbQuerys {
8
+ notemain: number = -1;
9
+ yzhtmain: number = -1;
10
+ useronly: number = -1;
11
+ }
12
+
13
+ export interface INoteMainDetaildbQuerys {
14
+ notemain: number;
15
+ }
16
+
17
+ export class TNoteMainDetaildbQuerys implements INoteMainDetaildbQuerys {
18
+ notemain: number = -1;
19
+ }