@ningboyz/apis 1.2.71 → 1.2.73

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 CHANGED
@@ -30,6 +30,7 @@ import WzpzRequest from "./packages/wzpz";
30
30
  import WlzfRequest from "./packages/wlzf";
31
31
  import ZbhdRequest from "./packages/zbhd";
32
32
  import BillRequest from "./packages/bill";
33
+ import JapzRequest from "./packages/japz";
33
34
 
34
35
  class Request {
35
36
  public static core: CoreRequest;
@@ -63,6 +64,7 @@ class Request {
63
64
  public static wlzf: WlzfRequest;
64
65
  public static zbhd: ZbhdRequest;
65
66
  public static bill: BillRequest;
67
+ public static japz: JapzRequest;
66
68
 
67
69
  public static createRequest(config: IAxiosConfig) {
68
70
  this.core = new CoreRequest(config);
@@ -96,6 +98,7 @@ class Request {
96
98
  this.wlzf = new WlzfRequest(config);
97
99
  this.zbhd = new ZbhdRequest(config);
98
100
  this.bill = new BillRequest(config);
101
+ this.japz = new JapzRequest(config);
99
102
  }
100
103
  }
101
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.2.71",
3
+ "version": "1.2.73",
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.71",
20
+ "@ningboyz/types": "1.2.73",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -1,6 +1,6 @@
1
1
  import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IParams } from "../type";
3
+ import { IEmptyQuerys, IParams } from "../type";
4
4
  import { ICoreUnitDetaildbQuerys, ICoreUnitGet4UnitQuerys, ICoreUnitSelectdbQuerys, ICoreUnitUploadQuerys } from "./types";
5
5
 
6
6
  class UnitRequest {
@@ -99,6 +99,15 @@ class UnitRequest {
99
99
  uploaddb(querys: ICoreUnitUploadQuerys, params: IParams<TCore.IUnitResponse[]>) {
100
100
  return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/uploaddb", querys, params);
101
101
  }
102
+
103
+ /**
104
+ * 单位导入统发编码
105
+ * @param params
106
+ * @returns
107
+ */
108
+ uploadu2(querys: IEmptyQuerys, params: IParams<TCore.IUnitResponse[]>) {
109
+ return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/codetxt2/uploaddb", querys, params);
110
+ }
102
111
  }
103
112
 
104
113
  export default UnitRequest;
package/packages/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from "./gzjg";
12
12
  export * from "./gztb";
13
13
  export * from "./gzzd";
14
14
  export * from "./hzcb";
15
+ export * from "./japz";
15
16
  export * from "./load";
16
17
  export * from "./myoa";
17
18
  export * from "./noti";