@ningboyz/apis 1.4.116 → 1.4.118

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.4.116",
3
+ "version": "1.4.118",
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.4.116",
20
+ "@ningboyz/types": "1.4.118",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -1,6 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IOcriPathPdfmergeQuerys } from "./types";
3
+ import { IOcriPathPdfMergeQuerys, IOcriPathWordDownloadQuerys, IOcriPathWordGernateQuerys } from "./types";
4
4
 
5
5
  class TPathRequest {
6
6
  private httpRequest: HttpRequest;
@@ -8,8 +8,16 @@ class TPathRequest {
8
8
  this.httpRequest = httpRequest;
9
9
  }
10
10
 
11
- pdfmerge(querys: IOcriPathPdfmergeQuerys, params: object) {
12
- return this.httpRequest.post<TCore.IPathResponse[]>(`${querys.url}/japi/ocri/tpath/pdfmerge`, undefined, params);
11
+ pdfmerge(querys: IOcriPathPdfMergeQuerys, params: object) {
12
+ return this.httpRequest.post<TCore.IPathResponse[]>(`${querys.url}/japi/ocri/tpath/pdfmerge`, querys, params);
13
+ }
14
+
15
+ worddownload(querys: IOcriPathWordDownloadQuerys, params: object) {
16
+ return this.httpRequest.post<TCore.IPathResponse[]>(`${querys.url}/japi/ocri/tpath/worddownload`, querys, params);
17
+ }
18
+
19
+ wordgernate(querys: IOcriPathWordGernateQuerys, params: object) {
20
+ return this.httpRequest.post<TCore.IPathResponse[]>(`${querys.url}/japi/ocri/tpath/wordgernate`, querys, params);
13
21
  }
14
22
  }
15
23
 
@@ -1,7 +1,31 @@
1
- export interface IOcriPathPdfmergeQuerys {
1
+ export interface IOcriPathPdfMergeQuerys {
2
2
  url: string;
3
3
  }
4
4
 
5
- export class TOcriPathPdfmergeQuerys implements IOcriPathPdfmergeQuerys {
5
+ export class TOcriPathPdfMergeQuerys implements IOcriPathPdfMergeQuerys {
6
6
  url: string = "";
7
7
  }
8
+
9
+ export interface IOcriPathWordDownloadQuerys {
10
+ url: string;
11
+ filetype: string;
12
+ filename: string;
13
+ }
14
+
15
+ export class TOcriPathWordDownloadQuerys implements IOcriPathWordDownloadQuerys {
16
+ url: string = "";
17
+ filetype: string = "";
18
+ filename: string = "";
19
+ }
20
+
21
+ export interface IOcriPathWordGernateQuerys {
22
+ url: string;
23
+ filetype: string;
24
+ filename: string;
25
+ }
26
+
27
+ export class TOcriPathWordGernateQuerys implements IOcriPathWordGernateQuerys {
28
+ url: string = "";
29
+ filetype: string = "";
30
+ filename: string = "";
31
+ }