@ningboyz/apis 1.2.20 → 1.2.22
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/gams/k8km.ts +60 -7
- package/packages/gams/types.ts +30 -0
- package/packages/yzht/glpz.ts +10 -1
- package/packages/yzht/main.ts +1 -1
- package/packages/yzht/types.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
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.2.
|
|
20
|
+
"@ningboyz/types": "1.2.22",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/gams/k8km.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { TGams } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
IGamsTk8kmUploaddbQuerys,
|
|
5
|
+
IGamsTk8kmDeletedbQuerys,
|
|
6
|
+
IGamsTk8kmDetaildbQuerys,
|
|
7
|
+
IGamsTk8kmInsertdbQuerys,
|
|
8
|
+
IGamsTk8kmSelectdbQuerys,
|
|
9
|
+
IGamsTk8kmUpdatedbQuerys,
|
|
10
|
+
IGamsTtypeQueuesdbQuerys,
|
|
11
|
+
IGamsTk8kmAppendhdQuerys,
|
|
12
|
+
IGamsTk8kmDel4dialQuerys
|
|
13
|
+
} from "./types";
|
|
4
14
|
|
|
5
15
|
class TK8kmRequest {
|
|
6
16
|
private httpRequest: HttpRequest;
|
|
@@ -18,12 +28,12 @@ class TK8kmRequest {
|
|
|
18
28
|
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("/gams/tk8km/selectdb", querys, undefined);
|
|
19
29
|
}
|
|
20
30
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
/**
|
|
32
|
+
* 新增报销科目
|
|
33
|
+
* @param querys
|
|
34
|
+
* @param params
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
27
37
|
insertdb(querys: IGamsTk8kmInsertdbQuerys, params: object) {
|
|
28
38
|
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("/gams/tk8km/insertdb", querys, params);
|
|
29
39
|
}
|
|
@@ -56,6 +66,49 @@ class TK8kmRequest {
|
|
|
56
66
|
detaildb(querys: IGamsTk8kmDetaildbQuerys) {
|
|
57
67
|
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("/gams/tk8km/detaildb", querys, undefined);
|
|
58
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* 排序
|
|
71
|
+
* @param params
|
|
72
|
+
* @returns
|
|
73
|
+
*/
|
|
74
|
+
queuesdb(params: object) {
|
|
75
|
+
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("/gams/tk8km/queuesdb", undefined, params);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 创建缓存
|
|
79
|
+
* @param querys
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
createdb(querys: IGamsTtypeQueuesdbQuerys) {
|
|
83
|
+
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("/gams/tdial/useredis/get4dial/createdb", querys, undefined);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 上传标准
|
|
87
|
+
* @param querys
|
|
88
|
+
* @param params
|
|
89
|
+
* @returns
|
|
90
|
+
*/
|
|
91
|
+
uploaddb(querys: IGamsTk8kmUploaddbQuerys, params: object) {
|
|
92
|
+
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("gams/tdial/dialdata/uploaddb", querys, params);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 追加额度
|
|
96
|
+
* @param querys
|
|
97
|
+
* @param params
|
|
98
|
+
* @returns
|
|
99
|
+
*/
|
|
100
|
+
appendhd(querys: IGamsTk8kmAppendhdQuerys, params: object) {
|
|
101
|
+
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("gams/tk8km/appendhd", querys, params);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 删除标准
|
|
105
|
+
* @param querys
|
|
106
|
+
* @param params
|
|
107
|
+
* @returns
|
|
108
|
+
*/
|
|
109
|
+
del4dial(querys: IGamsTk8kmDel4dialQuerys, params: object) {
|
|
110
|
+
return this.httpRequest.post<TGams.IGamsK8kmResponse[]>("gams/tdial/k8kmkmid/del4dial", querys, params);
|
|
111
|
+
}
|
|
59
112
|
}
|
|
60
113
|
|
|
61
114
|
export default TK8kmRequest;
|
package/packages/gams/types.ts
CHANGED
|
@@ -219,3 +219,33 @@ export class TGamsItemQueuesdbQuerys implements IGamsItemQueuesdbQuerys {
|
|
|
219
219
|
sourcend: number = -1;
|
|
220
220
|
sourceid: number = -1;
|
|
221
221
|
}
|
|
222
|
+
export interface IGamsTk8kmUploaddbQuerys {
|
|
223
|
+
sourcend: number;
|
|
224
|
+
sourceid: number;
|
|
225
|
+
diamain: number;
|
|
226
|
+
}
|
|
227
|
+
export class TGamsTk8kmUploaddbQuerys implements IGamsTk8kmUploaddbQuerys {
|
|
228
|
+
sourcend: number = -1;
|
|
229
|
+
sourceid: number = -1;
|
|
230
|
+
diamain: number = -1;
|
|
231
|
+
}
|
|
232
|
+
export interface IGamsTk8kmAppendhdQuerys {
|
|
233
|
+
sourcend: number;
|
|
234
|
+
sourceid: number;
|
|
235
|
+
k8kmkmid: number;
|
|
236
|
+
}
|
|
237
|
+
export class TGamsTk8kmAppendhdQuerys implements IGamsTk8kmAppendhdQuerys {
|
|
238
|
+
sourcend: number = -1;
|
|
239
|
+
sourceid: number = -1;
|
|
240
|
+
k8kmkmid: number = -1;
|
|
241
|
+
}
|
|
242
|
+
export interface IGamsTk8kmDel4dialQuerys {
|
|
243
|
+
sourcend: number;
|
|
244
|
+
sourceid: number;
|
|
245
|
+
k8kmkmid: number;
|
|
246
|
+
}
|
|
247
|
+
export class TGamsTk8kmDel4dialQuerys implements IGamsTk8kmDel4dialQuerys {
|
|
248
|
+
sourcend: number = -1;
|
|
249
|
+
sourceid: number = -1;
|
|
250
|
+
k8kmkmid: number = -1;
|
|
251
|
+
}
|
package/packages/yzht/glpz.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TYzht } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IYzhtGlpzUploaddbQuerys } from "./types";
|
|
3
|
+
import { IYzhtGlfdSelectfdQuerys, IYzhtGlpzUploaddbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class GlpzRequest {
|
|
@@ -28,6 +28,15 @@ class GlpzRequest {
|
|
|
28
28
|
deletedb(params: object) {
|
|
29
29
|
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tglpz/deletedb", undefined, params);
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 获取关联配置副单列表
|
|
34
|
+
* @param querys
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
selectfd(querys: IYzhtGlfdSelectfdQuerys) {
|
|
38
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tglfd/selectfd", querys);
|
|
39
|
+
}
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
export default GlpzRequest;
|
package/packages/yzht/main.ts
CHANGED
package/packages/yzht/types.ts
CHANGED
|
@@ -63,6 +63,14 @@ export class TYzhtGlpzUploaddbQuerys implements IYzhtGlpzUploaddbQuerys {
|
|
|
63
63
|
unitmain: number = -1;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export interface IYzhtGlfdSelectfdQuerys {
|
|
67
|
+
unitmain: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class TYzhtGlfdSelectfdQuerys implements IYzhtGlfdSelectfdQuerys {
|
|
71
|
+
unitmain: number = -1;
|
|
72
|
+
}
|
|
73
|
+
|
|
66
74
|
|
|
67
75
|
export interface IYzhtBillUpdated8Querys {
|
|
68
76
|
}
|