@ningboyz/apis 1.2.84 → 1.2.86

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.2.84",
3
+ "version": "1.2.86",
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.84",
20
+ "@ningboyz/types": "1.2.86",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -1,4 +1,4 @@
1
- import type { TCore } from "@ningboyz/types";
1
+ import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { ICorePathDownloadGtbase64Querys, ICorePathRotationQuerys, ICorePathUploaddbQuerys } from "./types";
4
4
 
@@ -8,6 +8,16 @@ class PathRequest {
8
8
  this.httpRequest = httpRequest;
9
9
  }
10
10
 
11
+ /**
12
+ * 保存base64文件
13
+ const path = new TCore.TPathResponse();
14
+ path.fileName = "";
15
+ path.inBase64 = encode("xxxx");
16
+ const formData = new FormData();
17
+ formData.append("params", JSON.stringify([path]));
18
+ * @param params
19
+ * @returns
20
+ */
11
21
  uploaddbInbase64(params: object) {
12
22
  return this.httpRequest.post<TCore.IPathResponse[]>("/core/tpath/uploaddb/inbase64", undefined, params);
13
23
  }
@@ -0,0 +1,32 @@
1
+ import { HttpRequest } from "../axios";
2
+ import { IHznkDataDeletedbQuerys, IHznkDataDetailQuerys, IHznkDataInsertdbQuerys, IHznkDataSelectdbQuerys, IHznkDataUpdatedbQuerys } from "./type";
3
+ import { THznk } from "@ningboyz/types";
4
+
5
+ class DataRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ selectdb(querys: IHznkDataSelectdbQuerys) {
12
+ return this.httpRequest.post<THznk.IHznkDataResponse[]>("/gapi/hznk/tdata/selectdb", querys, undefined);
13
+ }
14
+
15
+ insertdb(querys: IHznkDataInsertdbQuerys, params: object) {
16
+ return this.httpRequest.post<THznk.IHznkDataResponse[]>("/gapi/hznk/tdata/insertdb", querys, params);
17
+ }
18
+
19
+ updatedb(querys: IHznkDataUpdatedbQuerys, params: object) {
20
+ return this.httpRequest.post<THznk.IHznkDataResponse[]>("/gapi/hznk/tdata/updatedb", querys, params);
21
+ }
22
+
23
+ detaildb(querys: IHznkDataDetailQuerys) {
24
+ return this.httpRequest.post<THznk.IHznkDataResponse[]>("/gapi/hznk/tdata/detaildb", querys, undefined);
25
+ }
26
+
27
+ deletedb(querys: IHznkDataDeletedbQuerys, params: object) {
28
+ return this.httpRequest.post<THznk.IHznkDataResponse[]>("/gapi/hznk/tdata/deletedb", querys, params);
29
+ }
30
+ }
31
+
32
+ export default DataRequest;
@@ -0,0 +1,14 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import DataRequest from "./data";
3
+
4
+ class HznkRequest {
5
+ public data: DataRequest;
6
+
7
+ constructor(config: IAxiosConfig) {
8
+ const request = createRequest(config);
9
+ this.data = new DataRequest(request);
10
+ }
11
+ }
12
+
13
+ export default HznkRequest;
14
+ export * from "./type";
@@ -0,0 +1,21 @@
1
+ //#Data
2
+ export interface IHznkDataSelectdbQuerys {
3
+ sourcend: number;
4
+ }
5
+
6
+ export interface IHznkDataInsertdbQuerys {
7
+ sourcend: number;
8
+ }
9
+
10
+ export interface IHznkDataUpdatedbQuerys {
11
+ sourcend: number;
12
+ }
13
+
14
+ export interface IHznkDataDetailQuerys {
15
+ sourcend: number;
16
+ dataindx: number;
17
+ }
18
+
19
+ export interface IHznkDataDeletedbQuerys {
20
+ sourcend: number;
21
+ }
package/packages/index.ts CHANGED
@@ -30,3 +30,4 @@ export * from "./zbzd";
30
30
  export * from "./yzpz";
31
31
  export * from "./wzpz";
32
32
  export * from "./zbhd";
33
+ export * from "./hznk";
@@ -1,6 +1,6 @@
1
1
  import type { TWldy } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IWldyPageDetaildbQuerys, IWldyPageLoadDataQuerys, IWldyPageSelectd2Querys, IWldyPageSelectdbQuerys } from "./types";
3
+ import { IWldyPageDetaildbQuerys, IWldyPageLoadDataQuerys, IWldyPageSelectd2Querys, IWldyPageSelectdbQuerys, IWldyPageSet4PathQuerys } from "./types";
4
4
 
5
5
  class PageRequest {
6
6
  private httpRequest: HttpRequest;
@@ -72,6 +72,16 @@ class PageRequest {
72
72
  loaddata(querys: IWldyPageLoadDataQuerys) {
73
73
  return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tpage/loaddata", querys, undefined);
74
74
  }
75
+
76
+ /**
77
+ * 设置打印模版附件
78
+ * @param querys
79
+ * @param params
80
+ * @returns
81
+ */
82
+ set4Path(querys: IWldyPageSet4PathQuerys, params: object) {
83
+ return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tpage/set4path", querys, params);
84
+ }
75
85
  }
76
86
 
77
87
  export default PageRequest;
@@ -78,3 +78,11 @@ export class TWldyPageLoadDataQuerys implements IWldyPageLoadDataQuerys {
78
78
  billmain: number = -1;
79
79
  billuuid: string = "";
80
80
  }
81
+
82
+ export interface IWldyPageSet4PathQuerys {
83
+ wldypage: number;
84
+ }
85
+
86
+ export class TWldyPageSet4PathQuerys implements IWldyPageSet4PathQuerys {
87
+ wldypage: number = -1;
88
+ }