@ningboyz/apis 1.0.115 → 1.0.117
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/pzpt/index.ts +5 -0
- package/packages/pzpt/pzpz.ts +52 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.117",
|
|
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.0.
|
|
20
|
+
"@ningboyz/types": "1.0.117",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/pzpt/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ import YqkmRequest from "./yqkm";
|
|
|
9
9
|
import YqkbRequest from "./yqkb";
|
|
10
10
|
import GlfaRequest from "./glfa";
|
|
11
11
|
import GlkmRequest from "./glkm";
|
|
12
|
+
import PzpzRequest from "./pzpz";
|
|
13
|
+
|
|
12
14
|
class PzptRequest {
|
|
13
15
|
public cnfg: CnfgRequest;
|
|
14
16
|
public k8km: K8kmRequest;
|
|
@@ -20,6 +22,8 @@ class PzptRequest {
|
|
|
20
22
|
public yqkb: YqkbRequest;
|
|
21
23
|
public glfa: GlfaRequest;
|
|
22
24
|
public glkm: GlkmRequest;
|
|
25
|
+
public pzpz: PzpzRequest;
|
|
26
|
+
|
|
23
27
|
constructor(config: IAxiosConfig) {
|
|
24
28
|
const request = createRequest(config);
|
|
25
29
|
this.cnfg = new CnfgRequest(request);
|
|
@@ -32,6 +36,7 @@ class PzptRequest {
|
|
|
32
36
|
this.yqkb = new YqkbRequest(request);
|
|
33
37
|
this.glfa = new GlfaRequest(request);
|
|
34
38
|
this.glkm = new GlkmRequest(request);
|
|
39
|
+
this.pzpz = new PzpzRequest(request);
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IPzptCnfgSelectdbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class PzpzRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取凭证配置列表
|
|
13
|
+
* @param querys
|
|
14
|
+
*/
|
|
15
|
+
selectdb(querys: IPzptCnfgSelectdbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/selectdb", querys, undefined);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 新增凭证配置
|
|
21
|
+
* @param params
|
|
22
|
+
*/
|
|
23
|
+
insertdb(params: object) {
|
|
24
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/insertdb", undefined, params);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 更新凭证配置
|
|
29
|
+
* @param data
|
|
30
|
+
*/
|
|
31
|
+
updatedb(params: object) {
|
|
32
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/updatedb", undefined, params);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 删除凭证配置
|
|
37
|
+
* @param params
|
|
38
|
+
*/
|
|
39
|
+
deletedb(params: object) {
|
|
40
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/deletedb", undefined, params);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 凭证配置详情
|
|
45
|
+
* @param querys
|
|
46
|
+
*/
|
|
47
|
+
detaildb(querys: IPzptCnfgSelectdbQuerys) {
|
|
48
|
+
return this.httpRequest.post<TPzpt.IPzptPzpzResponse[]>("/gapi/pzpt/tpzpz/detaildb", querys, undefined);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default PzpzRequest;
|