@ningboyz/apis 1.8.9 → 1.8.11
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 +2 -2
- package/packages/antv/cnfg.ts +5 -5
- package/packages/antv/main.ts +5 -5
- package/packages/antv/para.ts +5 -5
- package/packages/axios.ts +13 -5
- package/packages/core/dddw.ts +13 -13
- package/packages/core/dept.ts +19 -19
- package/packages/core/dict.ts +11 -11
- package/packages/core/laid.ts +10 -10
- package/packages/core/mast.ts +5 -5
- package/packages/core/part.ts +8 -8
- package/packages/core/path.ts +9 -9
- package/packages/core/skdw.ts +6 -6
- package/packages/core/sysbilltype.ts +5 -5
- package/packages/core/sysclas.ts +1 -1
- package/packages/core/sysenvr.ts +1 -1
- package/packages/core/syskjnd.ts +1 -1
- package/packages/core/sysmenu.ts +17 -17
- package/packages/core/systravel.ts +5 -5
- package/packages/core/type.ts +9 -9
- package/packages/core/unit.ts +18 -18
- package/packages/core/user.ts +103 -103
- package/packages/elem/data.ts +6 -6
- package/packages/elem/main.ts +7 -7
- package/packages/expd/main.ts +2 -2
- package/packages/flow/duty.ts +5 -5
- package/packages/flow/flow.ts +19 -19
- package/packages/flow/main.ts +6 -6
- package/packages/flow/node.ts +9 -9
- package/packages/flow/void.ts +6 -6
- package/packages/gams/cnfg.ts +9 -9
- package/packages/gams/dial.ts +1 -1
- package/packages/gams/item.ts +5 -5
- package/packages/gams/k0km.ts +5 -5
- package/packages/gams/k8km.ts +11 -11
- package/packages/gams/type.ts +5 -5
- package/packages/gzjg/bind.ts +6 -6
- package/packages/gzjg/gzlm.ts +11 -11
- package/packages/gzjg/main.ts +8 -8
- package/packages/gzjg/qzgs.ts +3 -3
- package/packages/load/yqdw.ts +1 -1
- package/packages/load/yqkm.ts +1 -1
- package/packages/noti/main.ts +22 -22
- package/packages/ssb/socialInsurance.ts +3 -3
- package/packages/tabl/main.ts +32 -32
- package/packages/tyc/baseInfo.ts +3 -3
- package/packages/tyc/changeInfo.ts +3 -3
- package/packages/tyc/copyReg.ts +3 -3
- package/packages/tyc/copyRegWorks.ts +3 -3
- package/packages/tyc/courtAnnouncement.ts +3 -3
- package/packages/tyc/creditChina.ts +3 -3
- package/packages/tyc/dishonest.ts +3 -3
- package/packages/tyc/equityInfo.ts +3 -3
- package/packages/tyc/findHistoryRongzi.ts +3 -3
- package/packages/tyc/findJingpin.ts +3 -3
- package/packages/tyc/findTeamMember.ts +3 -3
- package/packages/tyc/getPledgeReg.ts +3 -3
- package/packages/tyc/holder.ts +3 -3
- package/packages/tyc/holderHistory.ts +3 -3
- package/packages/tyc/illegalInfo.ts +3 -3
- package/packages/tyc/inverst.ts +3 -3
- package/packages/tyc/investHistory.ts +3 -3
- package/packages/tyc/judicialSale.ts +3 -3
- package/packages/tyc/ktannouncement.ts +3 -3
- package/packages/tyc/lawSuit.ts +3 -3
- package/packages/tyc/mortgageInfo.ts +3 -3
- package/packages/tyc/ownTax.ts +3 -3
- package/packages/tyc/profile.ts +3 -3
- package/packages/tyc/publicNotice.ts +3 -3
- package/packages/tyc/punishmentInfo.ts +3 -3
- package/packages/tyc/staff.ts +3 -3
- package/packages/tyc/sync.ts +1 -1
- package/packages/wlzf/envr.ts +5 -5
- package/packages/wlzf/liha.ts +1 -1
- package/packages/wlzf/main.ts +5 -5
- package/packages/wtui/ctrl.ts +7 -7
- package/packages/wtui/envr.ts +1 -1
- package/packages/wtui/main.ts +10 -10
- package/packages/wtui/menu.ts +6 -6
- package/packages/wtui/node.ts +11 -11
- package/packages/wtui/view.ts +10 -10
- package/packages/wzpz/k8km.ts +1 -1
- package/packages/zbhd/cnfg.ts +5 -5
- package/packages/zbhd/main.ts +27 -27
- package/packages/zbzd/main.ts +19 -19
- package/packages/zbzd/zbfl.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.11",
|
|
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.8.
|
|
20
|
+
"@ningboyz/types": "1.8.11",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/antv/cnfg.ts
CHANGED
|
@@ -14,7 +14,7 @@ class CnfgRequest {
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
selectdb(querys: IAntvCnfgSelectdbQuerys) {
|
|
17
|
-
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/antv/tcnfg/selectdb", querys, undefined);
|
|
17
|
+
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/gapi/antv/tcnfg/selectdb", querys, undefined);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -23,7 +23,7 @@ class CnfgRequest {
|
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
insertdb(params: object) {
|
|
26
|
-
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/antv/tcnfg/insertdb", undefined, params);
|
|
26
|
+
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/gapi/antv/tcnfg/insertdb", undefined, params);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -32,7 +32,7 @@ class CnfgRequest {
|
|
|
32
32
|
* @returns
|
|
33
33
|
*/
|
|
34
34
|
updatedb(params: object) {
|
|
35
|
-
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/antv/tcnfg/updatedb", undefined, params);
|
|
35
|
+
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/gapi/antv/tcnfg/updatedb", undefined, params);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -41,7 +41,7 @@ class CnfgRequest {
|
|
|
41
41
|
* @returns
|
|
42
42
|
*/
|
|
43
43
|
deletedb(params: object) {
|
|
44
|
-
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/antv/tcnfg/deletedb", undefined, params);
|
|
44
|
+
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/gapi/antv/tcnfg/deletedb", undefined, params);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -50,7 +50,7 @@ class CnfgRequest {
|
|
|
50
50
|
* @returns
|
|
51
51
|
*/
|
|
52
52
|
detaildb(querys: IAntvCnfgDetaildbQuerys) {
|
|
53
|
-
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/antv/tcnfg/detaildb", querys, undefined);
|
|
53
|
+
return this.httpRequest.post<TAntv.IAntvCnfgResponse[]>("/gapi/antv/tcnfg/detaildb", querys, undefined);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
package/packages/antv/main.ts
CHANGED
|
@@ -13,7 +13,7 @@ class MainRequest {
|
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
15
|
selectdb() {
|
|
16
|
-
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/antv/tmain/selectdb");
|
|
16
|
+
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/gapi/antv/tmain/selectdb");
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ class MainRequest {
|
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
24
|
insertdb(Querys: object) {
|
|
25
|
-
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/antv/tmain/insertdb", undefined, Querys);
|
|
25
|
+
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/gapi/antv/tmain/insertdb", undefined, Querys);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -31,7 +31,7 @@ class MainRequest {
|
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
33
|
updatedb(Querys: object) {
|
|
34
|
-
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/antv/tmain/updatedb", undefined, Querys);
|
|
34
|
+
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/gapi/antv/tmain/updatedb", undefined, Querys);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -40,7 +40,7 @@ class MainRequest {
|
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
42
|
deletedb(Querys: object) {
|
|
43
|
-
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/antv/tmain/deletedb", undefined, Querys);
|
|
43
|
+
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/gapi/antv/tmain/deletedb", undefined, Querys);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -49,7 +49,7 @@ class MainRequest {
|
|
|
49
49
|
* @returns
|
|
50
50
|
*/
|
|
51
51
|
detaildb(querys: IAntvMainDetaildbQuerys) {
|
|
52
|
-
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/antv/tmain/detaildb", querys, undefined);
|
|
52
|
+
return this.httpRequest.post<TAntv.IAntvMainResponse[]>("/gapi/antv/tmain/detaildb", querys, undefined);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
package/packages/antv/para.ts
CHANGED
|
@@ -14,7 +14,7 @@ class ParaRequest {
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
selectdb(querys: IAntvParaSelectdbQuerys) {
|
|
17
|
-
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/antv/tpara/selectdb", querys, undefined);
|
|
17
|
+
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/gapi/antv/tpara/selectdb", querys, undefined);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -23,7 +23,7 @@ class ParaRequest {
|
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
insertdb(Querys: object) {
|
|
26
|
-
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/antv/tpara/insertdb", undefined, Querys);
|
|
26
|
+
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/gapi/antv/tpara/insertdb", undefined, Querys);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -32,7 +32,7 @@ class ParaRequest {
|
|
|
32
32
|
* @returns
|
|
33
33
|
*/
|
|
34
34
|
updatedb(Querys: object) {
|
|
35
|
-
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/antv/tpara/updatedb", undefined, Querys);
|
|
35
|
+
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/gapi/antv/tpara/updatedb", undefined, Querys);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -41,7 +41,7 @@ class ParaRequest {
|
|
|
41
41
|
* @returns
|
|
42
42
|
*/
|
|
43
43
|
deletedb(Querys: object) {
|
|
44
|
-
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/antv/tpara/deletedb", undefined, Querys);
|
|
44
|
+
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/gapi/antv/tpara/deletedb", undefined, Querys);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -50,7 +50,7 @@ class ParaRequest {
|
|
|
50
50
|
* @returns
|
|
51
51
|
*/
|
|
52
52
|
detaildb(querys: IAntvParaDetaildbQuerys) {
|
|
53
|
-
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/antv/tpara/detaildb", querys, undefined);
|
|
53
|
+
return this.httpRequest.post<TAntv.IAntvParaResponse[]>("/gapi/antv/tpara/detaildb", querys, undefined);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
package/packages/axios.ts
CHANGED
|
@@ -16,9 +16,18 @@ export interface IAxiosConfig {
|
|
|
16
16
|
|
|
17
17
|
class HttpRequest {
|
|
18
18
|
private instance: AxiosInstance;
|
|
19
|
+
private readonly API_PREFIX: string = "/gapi";
|
|
20
|
+
private readonly JAVA_API_PREFIX: string = "/japi";
|
|
19
21
|
private readonly METHOD_GET: string = "GET";
|
|
20
22
|
private readonly METHOD_POST: string = "POST";
|
|
21
23
|
|
|
24
|
+
private getRequestUrl(url: string) {
|
|
25
|
+
if (url.startsWith(this.API_PREFIX) || url.startsWith(this.JAVA_API_PREFIX)) {
|
|
26
|
+
return url;
|
|
27
|
+
}
|
|
28
|
+
return `${this.API_PREFIX}/${url}`;
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
// 实现一个方法将传入的querys每一个key都转换为小写
|
|
23
32
|
private toLowerCase(querys: object) {
|
|
24
33
|
return _.mapKeys(querys, (value, key) => key.toLowerCase());
|
|
@@ -91,7 +100,7 @@ class HttpRequest {
|
|
|
91
100
|
this.instance
|
|
92
101
|
.request<T>({
|
|
93
102
|
method: this.METHOD_GET,
|
|
94
|
-
url,
|
|
103
|
+
url: this.getRequestUrl(url),
|
|
95
104
|
params: lowerQuerys
|
|
96
105
|
})
|
|
97
106
|
.then((res: AxiosResponse) => {
|
|
@@ -110,7 +119,7 @@ class HttpRequest {
|
|
|
110
119
|
this.instance
|
|
111
120
|
.request<T>({
|
|
112
121
|
method: this.METHOD_POST,
|
|
113
|
-
url,
|
|
122
|
+
url: this.getRequestUrl(url),
|
|
114
123
|
params: lowerQuerys,
|
|
115
124
|
data,
|
|
116
125
|
headers: {
|
|
@@ -133,7 +142,7 @@ class HttpRequest {
|
|
|
133
142
|
this.instance
|
|
134
143
|
.request<T>({
|
|
135
144
|
method: this.METHOD_POST,
|
|
136
|
-
url,
|
|
145
|
+
url: this.getRequestUrl(url),
|
|
137
146
|
params: lowerQuerys,
|
|
138
147
|
data,
|
|
139
148
|
headers: {
|
|
@@ -155,7 +164,7 @@ class HttpRequest {
|
|
|
155
164
|
const data = !_.isNil(params) ? this.getFormData(params) : void 0;
|
|
156
165
|
this.instance
|
|
157
166
|
.request({
|
|
158
|
-
url,
|
|
167
|
+
url: this.getRequestUrl(url),
|
|
159
168
|
method: this.METHOD_POST,
|
|
160
169
|
params: lowerQuerys,
|
|
161
170
|
data,
|
|
@@ -183,4 +192,3 @@ function createRequest(config: IAxiosConfig) {
|
|
|
183
192
|
|
|
184
193
|
export { createRequest };
|
|
185
194
|
export type { AxiosResponse, HttpRequest, InternalAxiosRequestConfig };
|
|
186
|
-
|
package/packages/core/dddw.ts
CHANGED
|
@@ -23,7 +23,7 @@ class DddwRequest {
|
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
selectdb(querys: ICoreDddwSelectdbQuerys) {
|
|
26
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/selectd2", querys, undefined);
|
|
26
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/selectd2", querys, undefined);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -33,7 +33,7 @@ class DddwRequest {
|
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
35
|
insertd2(querys: ICoreDddwSelectdbQuerys, params: object) {
|
|
36
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/insertd2", querys, params);
|
|
36
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/insertd2", querys, params);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -43,7 +43,7 @@ class DddwRequest {
|
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
45
|
updatedb(querys: ICoreDddwSelectdbQuerys, params: object) {
|
|
46
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/updated2", querys, params);
|
|
46
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/updated2", querys, params);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -53,23 +53,23 @@ class DddwRequest {
|
|
|
53
53
|
* @returns
|
|
54
54
|
*/
|
|
55
55
|
deletedb(querys: ICoreDddwSelectdbQuerys, params: object) {
|
|
56
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/deleted2", querys, params);
|
|
56
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/deleted2", querys, params);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// 上传
|
|
60
60
|
uploadb(querys: ICoreDddwUploaddbQuerys, params: object) {
|
|
61
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/uploaddb", querys, params);
|
|
61
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/uploaddb", querys, params);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
// 上传定点单位2
|
|
66
66
|
uploadd2(querys: ICoreDddwUploadd2Querys, params: object) {
|
|
67
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/uploadd2", querys, params);
|
|
67
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/uploadd2", querys, params);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
// 上传定点单位3
|
|
71
71
|
uploadd3(querys: ICoreDddwUploadd2Querys, params: object) {
|
|
72
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/uploadd3", querys, params);
|
|
72
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/uploadd3", querys, params);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**详情
|
|
@@ -77,7 +77,7 @@ class DddwRequest {
|
|
|
77
77
|
* @returns
|
|
78
78
|
*/
|
|
79
79
|
detaildb(querys: ICoreDddwDetaildbQuerys, params: object) {
|
|
80
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/detaildb", querys, params);
|
|
80
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/detaildb", querys, params);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**查询供货商
|
|
@@ -85,27 +85,27 @@ class DddwRequest {
|
|
|
85
85
|
* @returns
|
|
86
86
|
*/
|
|
87
87
|
selectdb1(querys: ICoreDddwSelectdb1Querys) {
|
|
88
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/selectdb", querys, undefined);
|
|
88
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/selectdb", querys, undefined);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
// 新增供货商
|
|
92
92
|
insertdb1(querys: ICoreDddwInsertdbQuerys, params: object) {
|
|
93
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tdddw/insertdb", querys, params);
|
|
93
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tdddw/insertdb", querys, params);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
// 修改供货商
|
|
97
97
|
updatedb1(querys: ICoreDddwUpdatedb1Querys, params: object) {
|
|
98
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tcust/updatedb", querys, params);
|
|
98
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tcust/updatedb", querys, params);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// 删除供货商
|
|
102
102
|
deletedb1(querys: ICoreDddwDeletedb1Querys, params: object) {
|
|
103
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tcust/deletedb", querys, params);
|
|
103
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tcust/deletedb", querys, params);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// 供货商详情
|
|
107
107
|
detaildb1(querys: ICoreDddwDetaildb1Querys, params: object) {
|
|
108
|
-
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/core/tuser/detaildb", querys, params);
|
|
108
|
+
return this.httpRequest.post<TCore.IUserLiteResponse[]>("/gapi/core/tuser/detaildb", querys, params);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
package/packages/core/dept.ts
CHANGED
|
@@ -31,7 +31,7 @@ class DeptRequest {
|
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
33
|
deptliteGet4dept(querys: ICoreDeptLiteGet4deptQuerys) {
|
|
34
|
-
return this.httpRequest.post<TCore.IDeptLiteResponse[]>("/core/tdept/deptlite/get4dept", querys, undefined);
|
|
34
|
+
return this.httpRequest.post<TCore.IDeptLiteResponse[]>("/gapi/core/tdept/deptlite/get4dept", querys, undefined);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -41,7 +41,7 @@ class DeptRequest {
|
|
|
41
41
|
* @returns
|
|
42
42
|
*/
|
|
43
43
|
selectdb(querys: ICoreDeptSelectdbQuerys, params: object) {
|
|
44
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/selectdb", querys, params);
|
|
44
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/selectdb", querys, params);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -50,7 +50,7 @@ class DeptRequest {
|
|
|
50
50
|
* @returns
|
|
51
51
|
*/
|
|
52
52
|
detaildb(querys: ICoreDeptDetaildbQuerys) {
|
|
53
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/detaildb", querys, undefined);
|
|
53
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/detaildb", querys, undefined);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -60,7 +60,7 @@ class DeptRequest {
|
|
|
60
60
|
* @returns
|
|
61
61
|
*/
|
|
62
62
|
insertdb(querys: ICoreDeptInsertdbQuerys, params: object) {
|
|
63
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/insertdb", querys, params);
|
|
63
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/insertdb", querys, params);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -70,7 +70,7 @@ class DeptRequest {
|
|
|
70
70
|
* @returns
|
|
71
71
|
*/
|
|
72
72
|
updatedb(querys: ICoreDeptUpdatedbQuerys, params: object) {
|
|
73
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/updatedb", querys, params);
|
|
73
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/updatedb", querys, params);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
@@ -80,7 +80,7 @@ class DeptRequest {
|
|
|
80
80
|
* @returns
|
|
81
81
|
*/
|
|
82
82
|
deletedb(querys: ICoreDeptDeletedbQuerys, params: object) {
|
|
83
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/deletedb", querys, params);
|
|
83
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/deletedb", querys, params);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -90,7 +90,7 @@ class DeptRequest {
|
|
|
90
90
|
* @returns
|
|
91
91
|
*/
|
|
92
92
|
datalevlUploaddb(querys: ICoreDeptDatalevlUploaddbdbQuerys, params: object) {
|
|
93
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/datalevl/uploaddb", querys, params);
|
|
93
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/datalevl/uploaddb", querys, params);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
@@ -100,7 +100,7 @@ class DeptRequest {
|
|
|
100
100
|
* @returns
|
|
101
101
|
*/
|
|
102
102
|
createdb() {
|
|
103
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/createdb", undefined, undefined);
|
|
103
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/createdb", undefined, undefined);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -109,7 +109,7 @@ class DeptRequest {
|
|
|
109
109
|
* @returns
|
|
110
110
|
*/
|
|
111
111
|
judgedb(params: object) {
|
|
112
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/judgedb", undefined, params);
|
|
112
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tdept/judgedb", undefined, params);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
@@ -119,7 +119,7 @@ class DeptRequest {
|
|
|
119
119
|
* @returns
|
|
120
120
|
*/
|
|
121
121
|
uploadd2(querys: ICoreDeptUploadd2Querys, params: object) {
|
|
122
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/uploadd2", querys, params);
|
|
122
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tdept/uploadd2", querys, params);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
@@ -130,7 +130,7 @@ class DeptRequest {
|
|
|
130
130
|
* @returns
|
|
131
131
|
*/
|
|
132
132
|
uploadd3(querys: ICoreDeptUploadd3Querys, params: object) {
|
|
133
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/uploadd3", querys, params);
|
|
133
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tdept/uploadd3", querys, params);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/**
|
|
@@ -140,7 +140,7 @@ class DeptRequest {
|
|
|
140
140
|
* @returns
|
|
141
141
|
*/
|
|
142
142
|
deptBindUploaddb(querys: ICoreDeptDeptBindUploaddbQuerys, params: object) {
|
|
143
|
-
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/core/tdept/deptbind/uploaddb", querys, params);
|
|
143
|
+
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/gapi/core/tdept/deptbind/uploaddb", querys, params);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
@@ -150,7 +150,7 @@ class DeptRequest {
|
|
|
150
150
|
* @returns
|
|
151
151
|
*/
|
|
152
152
|
deptBindSelectdb(querys: ICoreDeptDeptBindSelectdbQuerys, params: object) {
|
|
153
|
-
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/core/tdept/deptbind/selectdb", querys, params);
|
|
153
|
+
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/gapi/core/tdept/deptbind/selectdb", querys, params);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/**
|
|
@@ -160,7 +160,7 @@ class DeptRequest {
|
|
|
160
160
|
* @returns
|
|
161
161
|
*/
|
|
162
162
|
deptBindUploadd2(querys: ICoreDeptDeptBindUploadd2Querys, params: object) {
|
|
163
|
-
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/core/tdept/deptbind/uploadd2", querys, params);
|
|
163
|
+
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/gapi/core/tdept/deptbind/uploadd2", querys, params);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/**
|
|
@@ -170,7 +170,7 @@ class DeptRequest {
|
|
|
170
170
|
* @returns
|
|
171
171
|
*/
|
|
172
172
|
deptPathUploaddb(querys: ICoreDeptDeptPathUploaddbQuerys, params: object) {
|
|
173
|
-
return this.httpRequest.post<string>("/core/tdept/deptpath/uploaddb", querys, params);
|
|
173
|
+
return this.httpRequest.post<string>("/gapi/core/tdept/deptpath/uploaddb", querys, params);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
@@ -180,22 +180,22 @@ class DeptRequest {
|
|
|
180
180
|
* @returns
|
|
181
181
|
*/
|
|
182
182
|
deptPathResetdp(querys: ICoreDeptDeptPathResetdpQuerys, params: object) {
|
|
183
|
-
return this.httpRequest.post<string>("/core/tdept/deptpath/deletedb", querys, params);
|
|
183
|
+
return this.httpRequest.post<string>("/gapi/core/tdept/deptpath/deletedb", querys, params);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
/**修改部门编号 */
|
|
187
187
|
updateDeptCode(querys: ICoreDeptUpdateDeptCodeQuerys, params: object) {
|
|
188
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/deptcode/uploaddb", querys, params);
|
|
188
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/deptcode/uploaddb", querys, params);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/**统计部门人员 */
|
|
192
192
|
appenddb(querys: ICoreDeptCountDeptPersonQuerys, params: object) {
|
|
193
|
-
return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/usersize/appenddb", querys, params);
|
|
193
|
+
return this.httpRequest.post<TCore.IDeptResponse[]>("/gapi/core/tdept/usersize/appenddb", querys, params);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/**返回人数统计 */
|
|
197
197
|
usersizeSelectdb(querys: ICoreDeptUsersizeSelectdbQuerys, params: object) {
|
|
198
|
-
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tdept/usersize/selectdb", querys, params);
|
|
198
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/gapi/core/tdept/usersize/selectdb", querys, params);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
|
package/packages/core/dict.ts
CHANGED
|
@@ -15,7 +15,7 @@ class DictRequest {
|
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
17
|
selectdb(querys: ICoreDictSelectdbQuerys) {
|
|
18
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/selectdb", querys, undefined);
|
|
18
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/selectdb", querys, undefined);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -24,7 +24,7 @@ class DictRequest {
|
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
26
|
queuesby(querys: IEmptyQuerys, params: IParams<TCore.IDictResponse[]>) {
|
|
27
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/queuesby", querys, params);
|
|
27
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/queuesby", querys, params);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -33,7 +33,7 @@ class DictRequest {
|
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
35
|
liteSelectdb(querys: ICoreDictSelectdbQuerys) {
|
|
36
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/dictlite/selectdb", querys, undefined);
|
|
36
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/dictlite/selectdb", querys, undefined);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ class DictRequest {
|
|
|
42
42
|
* @returns
|
|
43
43
|
*/
|
|
44
44
|
deletedb(params: object) {
|
|
45
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/deletedb", undefined, params);
|
|
45
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/deletedb", undefined, params);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ class DictRequest {
|
|
|
51
51
|
* @returns
|
|
52
52
|
*/
|
|
53
53
|
insertdb(params: object) {
|
|
54
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/insertdb", undefined, params);
|
|
54
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/insertdb", undefined, params);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -60,7 +60,7 @@ class DictRequest {
|
|
|
60
60
|
* @returns
|
|
61
61
|
*/
|
|
62
62
|
updatedb(params: object) {
|
|
63
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/updatedb", undefined, params);
|
|
63
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/updatedb", undefined, params);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -69,7 +69,7 @@ class DictRequest {
|
|
|
69
69
|
* @returns
|
|
70
70
|
*/
|
|
71
71
|
updatedp(params: object) {
|
|
72
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/updatedp", undefined, params);
|
|
72
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/updatedp", undefined, params);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -78,7 +78,7 @@ class DictRequest {
|
|
|
78
78
|
* @returns
|
|
79
79
|
*/
|
|
80
80
|
detaildb(querys: ICoreDictDetaildbQuerys) {
|
|
81
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/detaildb", querys, undefined);
|
|
81
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/detaildb", querys, undefined);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -87,7 +87,7 @@ class DictRequest {
|
|
|
87
87
|
* @returns
|
|
88
88
|
*/
|
|
89
89
|
detaildp(querys: ICoreDictDetaildpQuerys, params: object) {
|
|
90
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/detaildp", querys, params);
|
|
90
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/detaildp", querys, params);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -96,12 +96,12 @@ class DictRequest {
|
|
|
96
96
|
* @returns
|
|
97
97
|
*/
|
|
98
98
|
selectdy(params: object) {
|
|
99
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/selectdy", undefined, params);
|
|
99
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/selectdy", undefined, params);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
// 批量导入
|
|
103
103
|
uploaddb(querys: ICoreDictUploaddbQuerys, params: object) {
|
|
104
|
-
return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/uploaddb", querys, params);
|
|
104
|
+
return this.httpRequest.post<TCore.IDictResponse[]>("/gapi/core/tdict/uploaddb", querys, params);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
package/packages/core/laid.ts
CHANGED
|
@@ -23,7 +23,7 @@ class LaidRequest {
|
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
selectdb(querys: ICoreLaidSelectdbQuerys) {
|
|
26
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/selectdb", querys, undefined);
|
|
26
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/selectdb", querys, undefined);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -33,7 +33,7 @@ class LaidRequest {
|
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
35
|
insertdb(querys: ICoreLaidInsertdbQuerys, params: object) {
|
|
36
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>(`/core/tlaid/insertdb`, querys, params);
|
|
36
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>(`/gapi/core/tlaid/insertdb`, querys, params);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -43,7 +43,7 @@ class LaidRequest {
|
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
45
|
updatedb(querys: ICoreLaidUpdatedbQuerys, params: object) {
|
|
46
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/updatedb", querys, params);
|
|
46
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/updatedb", querys, params);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -52,7 +52,7 @@ class LaidRequest {
|
|
|
52
52
|
* @returns
|
|
53
53
|
*/
|
|
54
54
|
detaildb(querys: ICoreLaidDetaildbQuerys) {
|
|
55
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/detaildb", querys, undefined);
|
|
55
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/detaildb", querys, undefined);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
@@ -61,7 +61,7 @@ class LaidRequest {
|
|
|
61
61
|
* @returns
|
|
62
62
|
*/
|
|
63
63
|
deletedb(params: object) {
|
|
64
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/deletedb", undefined, params);
|
|
64
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/deletedb", undefined, params);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -70,7 +70,7 @@ class LaidRequest {
|
|
|
70
70
|
* @returns
|
|
71
71
|
*/
|
|
72
72
|
judgedb(params: object) {
|
|
73
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/judgedb", undefined, params);
|
|
73
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/judgedb", undefined, params);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
@@ -80,7 +80,7 @@ class LaidRequest {
|
|
|
80
80
|
* @returns
|
|
81
81
|
*/
|
|
82
82
|
uploadd3(querys: ICoreLaidUploadd3Querys, params: object) {
|
|
83
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/uploadd3", querys, params);
|
|
83
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/uploadd3", querys, params);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -91,21 +91,21 @@ class LaidRequest {
|
|
|
91
91
|
* @returns
|
|
92
92
|
*/
|
|
93
93
|
uploadd4(querys: ICoreLaidUploadd4Querys, params: object) {
|
|
94
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/uploadd4", querys, params);
|
|
94
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/uploadd4", querys, params);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* 批量保存排序
|
|
99
99
|
* */
|
|
100
100
|
queuesby(querys: ICoreLaidQueuesbyQuerys, params: object) {
|
|
101
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/queuesby/uploaddb", querys, params);
|
|
101
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/queuesby/uploaddb", querys, params);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* 复制给其他单位
|
|
106
106
|
* */
|
|
107
107
|
copyfrom(querys: ICoreLaidCopyfromQuerys, params: object) {
|
|
108
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/copyfrom", querys, params);
|
|
108
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/gapi/core/tlaid/copyfrom", querys, params);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|