@ningboyz/apis 1.0.18 → 1.0.20

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.0.18",
3
+ "version": "1.0.20",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "",
@@ -1,5 +1,6 @@
1
1
  import type { TFlow } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IFlowDutyInsertdbQuerys, IFlowDutySelectdbQuerys } from "./type";
3
4
 
4
5
  class DutyRequest {
5
6
  private httpRequest: HttpRequest;
@@ -9,22 +10,18 @@ class DutyRequest {
9
10
 
10
11
  /**
11
12
  * 根据flowmain查找审核要素
13
+ * @param querys
14
+ * @returns
12
15
  */
13
- selectdb(flowmain: number) {
14
- const params = {
15
- flowmain
16
- };
17
- return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/selectdb", undefined, params);
16
+ selectdb(querys: IFlowDutySelectdbQuerys) {
17
+ return this.httpRequest.post<TFlow.IFlowDutyResponse[]>("/flow/tduty/selectdb", querys, undefined);
18
18
  }
19
19
 
20
20
  /**
21
21
  * 根据flowmain添加审核要素
22
22
  */
23
- insertdb(flowmain: number, data: object) {
24
- const params = {
25
- flowmain
26
- };
27
- return this.httpRequest.post<TFlow.IFlowDutyResponse[]>(`/flow/tduty/insertdb`, data, params);
23
+ insertdb(querys: IFlowDutyInsertdbQuerys, params: object) {
24
+ return this.httpRequest.post<TFlow.IFlowDutyResponse[]>(`/flow/tduty/insertdb`, querys, params);
28
25
  }
29
26
 
30
27
  /**
@@ -0,0 +1,16 @@
1
+ export interface IFlowDutySelectdbQuerys {
2
+ flowmain: number;
3
+ }
4
+
5
+ export class TFlowDutySelectdbQuerys implements IFlowDutySelectdbQuerys {
6
+ flowmain: number = -1;
7
+ }
8
+
9
+ export interface IFlowDutyInsertdbQuerys {
10
+ flowmain: number;
11
+ }
12
+
13
+ export class TFlowDutyInsertdbQuerys implements IFlowDutyInsertdbQuerys {
14
+ flowmain: number = -1;
15
+ }
16
+
@@ -1,5 +1,18 @@
1
1
  import type { TTabl } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import {
4
+ ITablMainChkexist2Querys,
5
+ ITablMainChkexistQuerys,
6
+ ITablMainDetaild2Querys,
7
+ ITablMainDetaild3Querys,
8
+ ITablMainDetaildbQuerys,
9
+ ITablMainFinishcxQuerys,
10
+ ITablMainGet4dataQuerys,
11
+ ITablMainGet5formulaQuerys,
12
+ ITablMainInsertdbQuerys,
13
+ ITablMainSelectcxQuerys,
14
+ TTablMainSelectdbQuerys
15
+ } from "./type";
3
16
 
4
17
  class MainRequest {
5
18
  private httpRequest: HttpRequest;
@@ -7,169 +20,78 @@ class MainRequest {
7
20
  this.httpRequest = httpRequest;
8
21
  }
9
22
 
10
- selectdb(sourcend: number, sysclasc: number, withflow = 1, usesyzcg = 1, usesform = 1, gzjgmain = -1, taskmain = -1) {
11
- const params = {
12
- sourcend,
13
- sysclasc,
14
- withflow,
15
- usesyzcg,
16
- usesform,
17
- gzjgmain,
18
- taskmain
19
- };
20
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/selectdb", undefined, params);
23
+ selectdb(querys: TTablMainSelectdbQuerys) {
24
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/selectdb", querys, undefined);
21
25
  }
22
26
 
23
27
  /**
24
28
  * 新增Tabl
25
29
  */
26
- insertdb(isauto: number, data: object) {
27
- const params = {
28
- isauto
29
- };
30
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/insertdb", data, params);
30
+ insertdb(querys: ITablMainInsertdbQuerys, params: object) {
31
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/insertdb", querys, params);
31
32
  }
32
33
 
33
34
  /**
34
35
  * 修改Tabl-保留历史记录
35
36
  */
36
- modifydx(data: object) {
37
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifydx", data, undefined);
37
+ modifydx(params: object) {
38
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifydx", undefined, params);
38
39
  }
39
40
 
40
41
  /**
41
42
  * 批量修改Tabl-保留历史记录
42
43
  */
43
- modifyd2(data: object) {
44
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifyd2", data, undefined);
44
+ modifyd2(params: object) {
45
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifyd2", undefined, params);
45
46
  }
46
47
 
47
48
  /**
48
49
  * 删除Tabl
49
50
  */
50
- deletedb(data: object) {
51
- const params = {};
52
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/deletedb", data, params);
51
+ deletedb(params: object) {
52
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/deletedb", undefined, params);
53
53
  }
54
54
 
55
55
  /**报表查询Finished */
56
- finishcx(
57
- gzjgmain: number,
58
- sourcend: number,
59
- sourceqj: number = -1,
60
- unitmain: number = -1,
61
- withstat: number = -1,
62
- dataguid: string = "",
63
- withlock: number = -1,
64
- gzjglock: number,
65
- taskmain: number = -1,
66
- voidonly: number = -1,
67
- dataFind?: FormData
68
- ) {
69
- const params = {
70
- gzjgmain,
71
- sourcend,
72
- sourceqj,
73
- unitmain,
74
- withstat,
75
- dataguid,
76
- withlock,
77
- gzjglock,
78
- taskmain,
79
- voidonly
80
- };
81
- return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/finishedcx", dataFind, params);
82
- }
83
-
84
- selectcx(
85
- gzjgmain: number,
86
- sourcend: number,
87
- sourceqj: number = -1,
88
- unitmain: number = -1,
89
- withstat: number = -1,
90
- dataguid: string = "",
91
- withlock: number = -1,
92
- gzjglock: number,
93
- taskmain: number = -1,
94
- dataFind?: FormData
95
- ) {
96
- const params = {
97
- gzjgmain,
98
- sourcend,
99
- sourceqj,
100
- unitmain,
101
- withstat,
102
- dataguid,
103
- withlock,
104
- gzjglock,
105
- taskmain
106
- };
107
- return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", dataFind, params);
56
+ finishcx(querys: ITablMainFinishcxQuerys, params: object) {
57
+ return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/finishedcx", querys, params);
58
+ }
59
+
60
+ selectcx(querys: ITablMainSelectcxQuerys, params: object) {
61
+ return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", querys, params);
108
62
  }
109
63
 
110
64
  /** 批量导入 */
111
- uploaddb(data: any) {
112
- // const params = {
113
- // whobuild,
114
- // userindx,
115
- // };
116
- return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/uploaddb", data);
117
- }
118
-
119
- detaildb(tablmain: number) {
120
- const params = {
121
- tablmain
122
- };
123
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaildb", undefined, params);
124
- }
125
-
126
- detaild2(gzjgmain: number, dataguid: string) {
127
- const params = {
128
- gzjgmain,
129
- dataguid
130
- };
131
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild2", undefined, params);
132
- }
133
-
134
- detaild3(gzjgmain: number, fromguid: string) {
135
- const params = {
136
- gzjgmain,
137
- fromguid
138
- };
139
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild3", undefined, params);
140
- }
141
-
142
- get4data(sourcend: number, unitmain: number, fromguid: string) {
143
- const params = {
144
- sourcend,
145
- unitmain,
146
- fromguid
147
- };
148
- return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get4data", undefined, params);
149
- }
150
-
151
- chkexist(gzjgmain: number, sourcend: number, link: number, dataguid: string, listLink?: FormData) {
152
- const params = {
153
- gzjgmain,
154
- sourcend,
155
- dataguid,
156
- link
157
- };
158
- return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/chkexist", listLink, params);
159
- }
160
-
161
- chkexis2(gzjgmain: number, data: object) {
162
- const params = {
163
- gzjgmain
164
- };
165
- return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/chkexis2", data, params);
166
- }
167
-
168
- get5formula(tabltzbl: number, formData: FormData) {
169
- const params = {
170
- tabltzbl
171
- };
172
- return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get5formula", formData, params);
65
+ uploaddb(params: object) {
66
+ return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/uploaddb", undefined, params);
67
+ }
68
+
69
+ detaildb(querys: ITablMainDetaildbQuerys) {
70
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaildb", querys, undefined);
71
+ }
72
+
73
+ detaild2(querys: ITablMainDetaild2Querys) {
74
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild2", querys, undefined);
75
+ }
76
+
77
+ detaild3(querys: ITablMainDetaild3Querys) {
78
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/detaild3", querys, undefined);
79
+ }
80
+
81
+ get4data(querys: ITablMainGet4dataQuerys) {
82
+ return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get4data", querys, undefined);
83
+ }
84
+
85
+ chkexist(querys: ITablMainChkexistQuerys, params: object) {
86
+ return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/chkexist", querys, params);
87
+ }
88
+
89
+ chkexis2(querys: ITablMainChkexist2Querys, params: object) {
90
+ return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/chkexis2", querys, params);
91
+ }
92
+
93
+ get5formula(querys: ITablMainGet5formulaQuerys, params: object) {
94
+ return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/get5formula", querys, params);
173
95
  }
174
96
  }
175
97
 
@@ -0,0 +1,148 @@
1
+ /** ========== main ========== */
2
+ export interface ITablMainSelectdbQuerys {
3
+ sourcend: number;
4
+ sysclasc: number;
5
+ withflow: number;
6
+ usesyzcg: number;
7
+ usesform: number;
8
+ gzjgmain: number;
9
+ taskmain: number;
10
+ }
11
+
12
+ export class TTablMainSelectdbQuerys implements ITablMainSelectdbQuerys {
13
+ sourcend: number = -1;
14
+ sysclasc: number = -1;
15
+ withflow: number = 1;
16
+ usesyzcg: number = 1;
17
+ usesform: number = 1;
18
+ gzjgmain: number = -1;
19
+ taskmain: number = -1;
20
+ }
21
+
22
+ export interface ITablMainInsertdbQuerys {
23
+ isauto: number;
24
+ }
25
+
26
+ export class TTablMainInsertdbQuerys implements ITablMainInsertdbQuerys {
27
+ isauto: number = -1;
28
+ }
29
+
30
+ export interface ITablMainFinishcxQuerys {
31
+ gzjgmain: number;
32
+ sourcend: number;
33
+ sourceqj: number;
34
+ unitmain: number;
35
+ withstat: number;
36
+ dataguid: string;
37
+ withlock: number;
38
+ gzjglock: number;
39
+ taskmain: number;
40
+ voidonly: number;
41
+ }
42
+
43
+ export class TTablMainFinishcxQuerys implements ITablMainFinishcxQuerys {
44
+ gzjgmain: number = -1;
45
+ sourcend: number = -1;
46
+ sourceqj: number = -1;
47
+ unitmain: number = -1;
48
+ withstat: number = -1;
49
+ dataguid: string = "";
50
+ withlock: number = -1;
51
+ gzjglock: number = -1;
52
+ taskmain: number = -1;
53
+ voidonly: number = -1;
54
+ }
55
+
56
+ export interface ITablMainSelectcxQuerys {
57
+ gzjgmain: number;
58
+ sourcend: number;
59
+ sourceqj: number;
60
+ unitmain: number;
61
+ withstat: number;
62
+ dataguid: string;
63
+ withlock: number;
64
+ gzjglock: number;
65
+ taskmain: number;
66
+ }
67
+
68
+ export class TTablMainSelectcxQuerys implements ITablMainSelectcxQuerys {
69
+ gzjgmain: number = -1;
70
+ sourcend: number = -1;
71
+ sourceqj: number = -1;
72
+ unitmain: number = -1;
73
+ withstat: number = -1;
74
+ dataguid: string = "";
75
+ withlock: number = -1;
76
+ gzjglock: number = -1;
77
+ taskmain: number = -1;
78
+ }
79
+
80
+ export interface ITablMainDetaildbQuerys {
81
+ tablmain: number;
82
+ }
83
+
84
+ export class TTablMainDetaildbQuerys implements ITablMainDetaildbQuerys {
85
+ tablmain: number = -1;
86
+ }
87
+
88
+ export interface ITablMainDetaild2Querys {
89
+ gzjgmain: number;
90
+ dataguid: string;
91
+ }
92
+
93
+ export class TTablMainDetaild2Querys implements ITablMainDetaild2Querys {
94
+ gzjgmain: number = -1;
95
+ dataguid: string = "";
96
+ }
97
+
98
+ export interface ITablMainDetaild3Querys {
99
+ gzjgmain: number;
100
+ fromguid: string;
101
+ }
102
+
103
+ export class TTablMainDetaild3Querys implements ITablMainDetaild3Querys {
104
+ gzjgmain: number = -1;
105
+ fromguid: string = "";
106
+ }
107
+
108
+ export interface ITablMainGet4dataQuerys {
109
+ sourcend: number;
110
+ unitmain: number;
111
+ fromguid: string;
112
+ }
113
+
114
+ export class TTablMainGet4dataQuerys implements ITablMainGet4dataQuerys {
115
+ sourcend: number = -1;
116
+ unitmain: number = -1;
117
+ fromguid: string = "";
118
+ }
119
+
120
+ export interface ITablMainChkexistQuerys {
121
+ gzjgmain: number;
122
+ sourcend: number;
123
+ link: number;
124
+ dataguid: string;
125
+ }
126
+
127
+ export class TTablMainChkexistQuerys implements ITablMainChkexistQuerys {
128
+ gzjgmain: number = -1;
129
+ sourcend: number = -1;
130
+ link: number = -1;
131
+ dataguid: string = "";
132
+ }
133
+
134
+ export interface ITablMainChkexist2Querys {
135
+ gzjgmain: number;
136
+ }
137
+
138
+ export class TTablMainChkexist2Querys implements ITablMainChkexist2Querys {
139
+ gzjgmain: number = -1;
140
+ }
141
+
142
+ export interface ITablMainGet5formulaQuerys {
143
+ tabltzbl: number;
144
+ }
145
+
146
+ export class ITablMainGet5formulaQuerys implements ITablMainGet5formulaQuerys {
147
+ tabltzbl: number = -1;
148
+ }
@@ -1,5 +1,6 @@
1
1
  import type { TTask } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ITaskMainDetaildbQuerys, ITaskMainSelectdbQuerys } from "./type";
3
4
 
4
5
  class MainRequest {
5
6
  private httpRequest: HttpRequest;
@@ -7,19 +8,12 @@ class MainRequest {
7
8
  this.httpRequest = httpRequest;
8
9
  }
9
10
 
10
- selectdb(useronly: number, gzjgmain: number) {
11
- const params = {
12
- useronly,
13
- gzjgmain
14
- };
15
- return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", undefined, params);
11
+ selectdb(querys: ITaskMainSelectdbQuerys) {
12
+ return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", querys, undefined);
16
13
  }
17
14
 
18
- detaildb(taskmain: number) {
19
- const params = {
20
- taskmain
21
- };
22
- return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", undefined, params);
15
+ detaildb(querys: ITaskMainDetaildbQuerys) {
16
+ return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", querys, undefined);
23
17
  }
24
18
  }
25
19
 
@@ -0,0 +1,18 @@
1
+ /** ========== main ========== */
2
+ export interface ITaskMainSelectdbQuerys {
3
+ useronly: number;
4
+ gzjgmain: number;
5
+ }
6
+
7
+ export class TTaskMainSelectdbQuerys implements ITaskMainSelectdbQuerys {
8
+ useronly: number = -1;
9
+ gzjgmain: number = -1;
10
+ }
11
+
12
+ export interface ITaskMainDetaildbQuerys {
13
+ taskmain: number;
14
+ }
15
+
16
+ export class TTaskMainDetaildbQuerys implements ITaskMainDetaildbQuerys {
17
+ taskmain: number = -1;
18
+ }
@@ -1,5 +1,6 @@
1
1
  import type { TWldy } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IWldyDataSelectdbQuerys } from "./type";
3
4
 
4
5
  class DataRequest {
5
6
  private httpRequest: HttpRequest;
@@ -13,35 +14,32 @@ class DataRequest {
13
14
  * @param useruuid
14
15
  * @param unitmain
15
16
  */
16
- selectdb(wldypage: number) {
17
- const params = {
18
- wldypage
19
- };
20
- return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/selectdb", undefined, params);
17
+ selectdb(querys: IWldyDataSelectdbQuerys) {
18
+ return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/selectdb", querys, undefined);
21
19
  }
22
20
 
23
21
  /**
24
22
  * 添加打印模板数据
25
- * @param data
23
+ * @param params
26
24
  */
27
- insertdb(data: object) {
28
- return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/insertdb", data);
25
+ insertdb(params: object) {
26
+ return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/insertdb", undefined, params);
29
27
  }
30
28
 
31
29
  /**
32
30
  * 删除打印模板数据
33
31
  * @param data
34
32
  */
35
- deletedb(data: object) {
36
- return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/deletedb", data);
33
+ deletedb(params: object) {
34
+ return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/deletedb", undefined, params);
37
35
  }
38
36
 
39
37
  /**
40
38
  * 修改打印模板数据
41
39
  * @param data
42
40
  */
43
- updatedb(data: object) {
44
- return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/updatedb", data);
41
+ updatedb(params: object) {
42
+ return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/updatedb", undefined, params);
45
43
  }
46
44
 
47
45
  /**
@@ -1,5 +1,6 @@
1
1
  import type { TWldy } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IWldyItemSelectdbQuerys } from "./type";
3
4
 
4
5
  class ItemRequest {
5
6
  private httpRequest: HttpRequest;
@@ -9,40 +10,34 @@ class ItemRequest {
9
10
 
10
11
  /**
11
12
  * 查询打印模板
12
- * @param sysclasc
13
- * @param useruuid
14
- * @param unitmain
13
+ * @param querys
15
14
  */
16
- selectdb(wldypage: number, wldydata: number) {
17
- const params = {
18
- wldypage,
19
- wldydata
20
- };
21
- return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", undefined, params);
15
+ selectdb(querys: IWldyItemSelectdbQuerys) {
16
+ return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", querys, undefined);
22
17
  }
23
18
 
24
19
  /**
25
20
  * 添加打印模板数据
26
- * @param data
21
+ * @param params
27
22
  */
28
- insertdb(data: object) {
29
- return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/insertdb", data);
23
+ insertdb(params: object) {
24
+ return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/insertdb", undefined, params);
30
25
  }
31
26
 
32
27
  /**
33
28
  * 删除打印模板数据
34
- * @param data
29
+ * @param params
35
30
  */
36
- deletedb(data: object) {
37
- return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/deletedb", data);
31
+ deletedb(params: object) {
32
+ return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/deletedb", undefined, params);
38
33
  }
39
34
 
40
35
  /**
41
36
  * 修改打印模板数据
42
- * @param data
37
+ * @param params
43
38
  */
44
- updatedb(data: object) {
45
- return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/updatedb", data);
39
+ updatedb(params: object) {
40
+ return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/updatedb", undefined, params);
46
41
  }
47
42
 
48
43
  /**
@@ -1,5 +1,6 @@
1
1
  import type { TWldy } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { IWldyPageSelectd2Querys, IWldyPageSelectdbQuerys } from "./type";
3
4
 
4
5
  class PageRequest {
5
6
  private httpRequest: HttpRequest;
@@ -13,48 +14,40 @@ class PageRequest {
13
14
  * @param useruuid
14
15
  * @param unitmain
15
16
  */
16
- selectdb(sysclasc: number, useruuid: string, unitmain: number) {
17
- const params = {
18
- sysclasc,
19
- useruuid,
20
- unitmain
21
- };
22
- return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", undefined, params);
17
+ selectdb(querys: IWldyPageSelectdbQuerys) {
18
+ return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", querys, undefined);
23
19
  }
24
20
 
25
21
  /**
26
22
  * 根据使用场景查询打印模板
27
23
  * @param pageuses
28
24
  */
29
- selectd2(pageuses: string) {
30
- const params = {
31
- pageuses
32
- };
33
- return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", undefined, params);
25
+ selectd2(querys: IWldyPageSelectd2Querys) {
26
+ return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", querys, undefined);
34
27
  }
35
28
 
36
29
  /**
37
30
  * 添加打印模板数据
38
- * @param data
31
+ * @param params
39
32
  */
40
- insertdb(data: object) {
41
- return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb", data);
33
+ insertdb(params: object) {
34
+ return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb", undefined, params);
42
35
  }
43
36
 
44
37
  /**
45
38
  * 删除打印模板数据
46
- * @param data
39
+ * @param params
47
40
  */
48
- deletedb(data: object) {
49
- return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb", data);
41
+ deletedb(params: object) {
42
+ return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb", undefined, params);
50
43
  }
51
44
 
52
45
  /**
53
46
  * 修改打印模板数据
54
- * @param data
47
+ * @param params
55
48
  */
56
- updatedb(data: object) {
57
- return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb", data);
49
+ updatedb(params: object) {
50
+ return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb", undefined, params);
58
51
  }
59
52
 
60
53
  /**
@@ -0,0 +1,40 @@
1
+ /** ========== data ========== */
2
+ export interface IWldyDataSelectdbQuerys {
3
+ wldypage: number;
4
+ }
5
+
6
+ export class TWldyDataSelectdbQuerys implements IWldyDataSelectdbQuerys {
7
+ wldypage: number = -1;
8
+ }
9
+
10
+ /** ========== item ========== */
11
+ export interface IWldyItemSelectdbQuerys {
12
+ wldypage: number;
13
+ wldydata: number;
14
+ }
15
+
16
+ export class TWldyItemSelectdbQuerys implements IWldyItemSelectdbQuerys {
17
+ wldypage: number = -1;
18
+ wldydata: number = -1;
19
+ }
20
+
21
+ /** ========== page ========== */
22
+ export interface IWldyPageSelectdbQuerys {
23
+ sysclasc: number;
24
+ useruuid: string;
25
+ unitmain: number;
26
+ }
27
+
28
+ export class TWldyPageSelectdbQuerys implements IWldyPageSelectdbQuerys {
29
+ sysclasc: number = -1;
30
+ useruuid: string = "";
31
+ unitmain: number = -1;
32
+ }
33
+
34
+ export interface IWldyPageSelectd2Querys {
35
+ pageuses: string;
36
+ }
37
+
38
+ export class TWldyPageSelectd2Querys implements IWldyPageSelectd2Querys {
39
+ pageuses: string = "";
40
+ }
@@ -274,7 +274,7 @@ export interface IWtuiViewInsertdbQuerys {
274
274
  wtuimain: number;
275
275
  }
276
276
 
277
- export class IWtuiViewInsertdbQuerys implements IWtuiViewInsertdbQuerys {
277
+ export class TWtuiViewInsertdbQuerys implements IWtuiViewInsertdbQuerys {
278
278
  wtuimain: number = -1;
279
279
  }
280
280
 
@@ -17,8 +17,8 @@ class ZoneRequest {
17
17
 
18
18
  /**
19
19
  * 添加表单命名
20
- * @param wtuiMain
21
- * @param data
20
+ * @param querys
21
+ * @param params
22
22
  */
23
23
  insertdb(querys: IWtuiZoneInsertdbQuerys, params: object) {
24
24
  return this.httpRequest.post<TWtui.IWtuiZoneResponse[]>(`/gapi/wtui/tzone/insertdb`, querys, params);
@@ -26,7 +26,7 @@ class ZoneRequest {
26
26
 
27
27
  /**
28
28
  * 删除表单命名
29
- * @param formData
29
+ * @param params
30
30
  */
31
31
  deletedb(params: object) {
32
32
  return this.httpRequest.post<TWtui.IWtuiZoneResponse[]>("/gapi/wtui/tzone/deletedb", undefined, params);
@@ -34,7 +34,7 @@ class ZoneRequest {
34
34
 
35
35
  /**
36
36
  * 修改表单命名
37
- * @param data
37
+ * @param params
38
38
  */
39
39
  updatedb(params: object) {
40
40
  return this.httpRequest.post<TWtui.IWtuiZoneResponse[]>(`/gapi/wtui/tzone/updatedb`, undefined, params);
@@ -42,8 +42,7 @@ class ZoneRequest {
42
42
 
43
43
  /**
44
44
  * 获取表单命名
45
- * @param zoneMain
46
- * @param data
45
+ * @param querys
47
46
  */
48
47
  detaildb(querys: IWtuiZoneDetaildbQuerys) {
49
48
  return this.httpRequest.post<TWtui.IWtuiZoneResponse[]>(`/gapi/wtui/tzone/detaildb`, querys, undefined);