@ningboyz/apis 1.1.103 → 1.1.105
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/yzpz/kbkm.ts +21 -0
- package/packages/yzpz/types.ts +20 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.105",
|
|
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.1.
|
|
20
|
+
"@ningboyz/types": "1.1.105",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/yzpz/kbkm.ts
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
|
+
import { TYzpz } from "@ningboyz/types";
|
|
1
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IYzpzKbkmSelctdbQuerys, IYzpzKbkmUploaddbQuerys } from "./types";
|
|
2
4
|
|
|
3
5
|
class KbkmRequest {
|
|
4
6
|
private httpRequest: HttpRequest;
|
|
5
7
|
constructor(httpRequest: HttpRequest) {
|
|
6
8
|
this.httpRequest = httpRequest;
|
|
7
9
|
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取期初余额列表
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: IYzpzKbkmSelctdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TYzpz.IYzpzK8kmResponse[]>("/gapi/yzpz/tkbkm/selectdb", querys, undefined);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 上传期初余额
|
|
22
|
+
* @param querys
|
|
23
|
+
* @param params
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
uploaddb(querys: IYzpzKbkmUploaddbQuerys, params: object) {
|
|
27
|
+
return this.httpRequest.post<TYzpz.IYzpzKbkmResponse[]>("/gapi/yzpz/tkbkm/uploaddb", querys, params);
|
|
28
|
+
}
|
|
8
29
|
}
|
|
9
30
|
|
|
10
31
|
export default KbkmRequest;
|
package/packages/yzpz/types.ts
CHANGED
|
@@ -217,3 +217,23 @@ export interface IYzpzK8kmDeletedbQuerys {
|
|
|
217
217
|
export class TYzpzK8kmDeletedbQuerys implements IYzpzK8kmDeletedbQuerys {
|
|
218
218
|
chkexist: number = -1;
|
|
219
219
|
}
|
|
220
|
+
|
|
221
|
+
export interface IYzpzKbkmSelctdbQuerys {
|
|
222
|
+
sourcend: number;
|
|
223
|
+
sourceid: number;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export class TYzpzKbkmSelctdbQuerys implements IYzpzKbkmSelctdbQuerys {
|
|
227
|
+
sourcend: number = -1;
|
|
228
|
+
sourceid: number = -1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface IYzpzKbkmUploaddbQuerys {
|
|
232
|
+
sourcend: number;
|
|
233
|
+
sourceid: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export class TYzpzKbkmUploaddbQuerys implements IYzpzKbkmUploaddbQuerys {
|
|
237
|
+
sourcend: number = -1;
|
|
238
|
+
sourceid: number = -1;
|
|
239
|
+
}
|