@ningboyz/apis 1.1.185 → 1.1.187
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/index.ts +3 -0
- package/package.json +2 -2
- package/packages/index.ts +1 -0
- package/packages/load/main.ts +1 -1
- package/packages/zbpz/cnfg.ts +60 -0
- package/packages/zbpz/index.ts +15 -0
- package/packages/zbpz/types.ts +34 -0
package/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ import YzpzRequest from "./packages/yzpz";
|
|
|
29
29
|
import WzpzRequest from "./packages/wzpz";
|
|
30
30
|
import WlzfRequest from "./packages/wlzf";
|
|
31
31
|
import ZbhdRequest from "./packages/zbhd";
|
|
32
|
+
import ZbpzRequest from "./packages/zbpz";
|
|
32
33
|
|
|
33
34
|
class Request {
|
|
34
35
|
public static core: CoreRequest;
|
|
@@ -61,6 +62,7 @@ class Request {
|
|
|
61
62
|
public static wzpz: WzpzRequest;
|
|
62
63
|
public static wlzf: WlzfRequest;
|
|
63
64
|
public static zbhd: ZbhdRequest;
|
|
65
|
+
public static zbpz: ZbpzRequest;
|
|
64
66
|
|
|
65
67
|
public static createRequest(config: IAxiosConfig) {
|
|
66
68
|
this.core = new CoreRequest(config);
|
|
@@ -93,6 +95,7 @@ class Request {
|
|
|
93
95
|
this.wzpz = new WzpzRequest(config);
|
|
94
96
|
this.wlzf = new WlzfRequest(config);
|
|
95
97
|
this.zbhd = new ZbhdRequest(config);
|
|
98
|
+
this.zbpz = new ZbpzRequest(config);
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.187",
|
|
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.187",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/index.ts
CHANGED
package/packages/load/main.ts
CHANGED
|
@@ -14,7 +14,7 @@ class MainRequest {
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
selectdb(querys: ILoadMainSelectdbQuerys) {
|
|
17
|
-
return this.httpRequest.post<TLoad.
|
|
17
|
+
return this.httpRequest.post<TLoad.ILoadMainResponse[]>("/gapi/load/tmain/selectdb", querys);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { TZbhd } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IZbpzCnfgDetaildbQuerys, IZbpzCnfgInsertdbQuerys, IZbpzCnfgSelectdbQuerys, IZbpzCnfgUpdatedbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class ZbpzRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取额度设置列表
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: IZbpzCnfgSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbpz/tcnfg/selectdb", querys);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 新增额度设置
|
|
22
|
+
* @param querys
|
|
23
|
+
* @param params
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
insertdb(querys: IZbpzCnfgInsertdbQuerys, params: object) {
|
|
27
|
+
return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbpz/tcnfg/insertdb", querys, params);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 修改额度设置
|
|
32
|
+
* @param querys
|
|
33
|
+
* @param params
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
updatedb(querys: IZbpzCnfgUpdatedbQuerys, params: object) {
|
|
37
|
+
return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbpz/tcnfg/updatedb", querys, params);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 删除额度设置
|
|
42
|
+
* @param params
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
deletedb(params: object) {
|
|
46
|
+
return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbpz/tcnfg/deletedb", undefined, params);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 获取额度设置详情
|
|
51
|
+
* @param querys
|
|
52
|
+
* @param params
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
detaildb(querys: IZbpzCnfgDetaildbQuerys, params: object) {
|
|
56
|
+
return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbpz/tcnfg/detaildb", querys, params);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export default ZbpzRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import CnfgRequest from "./cnfg";
|
|
3
|
+
|
|
4
|
+
class ZbpzRequest {
|
|
5
|
+
public cnfg: CnfgRequest;
|
|
6
|
+
|
|
7
|
+
constructor(config: IAxiosConfig) {
|
|
8
|
+
const request = createRequest(config);
|
|
9
|
+
this.cnfg = new CnfgRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default ZbpzRequest;
|
|
14
|
+
export * from "./types";
|
|
15
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** ========== cnfg ========== */
|
|
2
|
+
export interface IZbpzCnfgSelectdbQuerys {
|
|
3
|
+
sourcend: number;
|
|
4
|
+
unitmain: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class TZbpzCnfgSelectdbQuerys implements IZbpzCnfgSelectdbQuerys {
|
|
8
|
+
sourcend: number = -1;
|
|
9
|
+
unitmain: number = -1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IZbpzCnfgInsertdbQuerys {
|
|
13
|
+
sourcend: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class TZbpzCnfgInsertdbQuerys implements IZbpzCnfgInsertdbQuerys {
|
|
17
|
+
sourcend: number = -1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IZbpzCnfgUpdatedbQuerys {
|
|
21
|
+
sourcend: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class TZbpzCnfgUpdatedbQuerys implements IZbpzCnfgUpdatedbQuerys {
|
|
25
|
+
sourcend: number = -1
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IZbpzCnfgDetaildbQuerys {
|
|
29
|
+
sourcend: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class TZbpzCnfgDetaildbQuerys implements IZbpzCnfgDetaildbQuerys {
|
|
33
|
+
sourcend: number = -1;
|
|
34
|
+
}
|